This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Plugin name: Jetpack Infinite Scroll for Single Posts | |
| /** | |
| * Infinite scroll needs to be filtered to function on non-archive pages. | |
| */ | |
| function jisfsp_archive_supported( $supported, $settings ) { | |
| if ( is_singular( 'post' ) ) { | |
| return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( ! headers_sent() ) { | |
| nocache_headers(); | |
| header( 'X-Robots-Tag: noindex, nofollow, noarchive, nosnippet' ); | |
| wp_safe_redirect( admin_url() ); | |
| } | |
| ?> | |
| <!DOCTYPE html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'ppp_preview_link', 'my_ppp_preview_link', 10, 2 ); | |
| function my_ppp_preview_link( $link, $post_id ) { | |
| $found = preg_match( '#_ppp=([0-9A-F]{10})#i', $link, $matches ); | |
| if ( ! $found ) { | |
| return $link; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Multisite Login Consolidation | |
| * Author: georgestephanis | |
| * License: GPLv2+ | |
| * Requires PHP: 7 | |
| * Network: true | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .site { | |
| max-width: 85% !important; | |
| } | |
| article.post { | |
| width: 200px; | |
| height: 300px; | |
| border-radius: 15px; | |
| border-bottom: 0; | |
| box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.35); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // loosely based on a selector from https://davidwalsh.name/external-links-css | |
| wp_add_inline_style( | |
| 'mytheme-style', | |
| sprintf( | |
| 'a[href*="//"]:not([href*="%1$s"]) { | |
| padding-%3$s: 17px; | |
| background: url("%2$s") center %3$s no-repeat; | |
| background-size: 13px; | |
| }', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| include( 'the/path/to/wp-load.php' ); | |
| if ( ! function_exists( 'is_plugin_active_for_network' ) ) { | |
| require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); | |
| } | |
| $updates = get_site_transient( 'update_plugins' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Child Theme Settings Migrator | |
| */ | |
| add_action( 'admin_init', 'child_theme_settings_migrator' ); | |
| function child_theme_settings_migrator() { | |
| $theme = wp_get_theme(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Extra User Registration Source Tracking | |
| * Description: Store data about a user's origin -- IP Address and User Agent -- when registering. | |
| * Author: georgestephanis | |
| * Author URI: http://wpspecialprojects.wordpress.com/ | |
| * License: GPLv2+ | |
| */ |