Ticket #19251: 19251.2.diff
File 19251.2.diff, 3.5 KB (added by , 13 years ago) |
---|
-
wp-signup.php
3 3 /** Sets up the WordPress Environment. */ 4 4 require( dirname(__FILE__) . '/wp-load.php' ); 5 5 6 add_action( 'wp_head', ' signuppageheaders' );6 add_action( 'wp_head', '_wp_render_meta_robots_noindex' ); 7 7 8 8 require( './wp-blog-header.php' ); 9 9 … … 17 17 } 18 18 add_action( 'wp_head', 'do_signup_header' ); 19 19 20 function signuppageheaders() {21 echo "<meta name='robots' content='noindex,nofollow' />\n";22 }23 24 20 if ( !is_multisite() ) { 25 21 wp_redirect( site_url('wp-login.php?action=register') ); 26 22 die(); -
wp-login.php
42 42 global $error, $is_iphone, $interim_login, $current_site; 43 43 44 44 // Don't index any of these forms 45 add_filter( 'pre_option_blog_public', '__return_zero' ); 46 add_action( 'login_head', 'noindex' ); 45 add_action( 'login_head', '_wp_render_meta_robots_noindex' ); 47 46 48 47 if ( empty($wp_error) ) 49 48 $wp_error = new WP_Error(); -
wp-includes/default-filters.php
219 219 add_action( 'after_switch_theme', '_wp_sidebars_changed' ); 220 220 221 221 if ( isset( $_GET['replytocom'] ) ) 222 add_filter( ' pre_option_blog_public', '__return_zero' );222 add_filter( 'wp_head', '_wp_render_meta_robots_noindex' ); 223 223 224 224 // Login actions 225 225 add_action( 'login_head', 'wp_print_head_scripts', 9 ); -
wp-includes/functions.php
1849 1849 1850 1850 $output = "User-agent: *\n"; 1851 1851 $public = get_option( 'blog_public' ); 1852 if ( '0' == 1852 if ( '0' == $public ) { 1853 1853 $output .= "Disallow: /\n"; 1854 1854 } else { 1855 1855 $site_url = parse_url( site_url() ); -
wp-includes/general-template.php
1684 1684 function noindex() { 1685 1685 // If the blog is not public, tell robots to go away. 1686 1686 if ( '0' == get_option('blog_public') ) 1687 echo "<meta name='robots' content='noindex,nofollow' />\n";1687 _wp_render_meta_robots_noindex(); 1688 1688 } 1689 1689 1690 function _wp_render_meta_robots_noindex() { 1691 echo "<meta name='robots' content='noindex,nofollow' />\n"; 1692 } 1693 1690 1694 /** 1691 1695 * Determine if TinyMCE is available. 1692 1696 * -
wp-admin/options-writing.php
157 157 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> 158 158 <h3><?php _e('Update Services') ?></h3> 159 159 160 <?php if ( get_option('blog_public') ) : ?>160 <?php if ( 1 == get_option('blog_public') ) : ?> 161 161 162 162 <p><label for="ping_sites"><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></label></p> 163 163