Changeset 19304
- Timestamp:
- 11/15/2011 08:44:48 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-writing.php
r19119 r19304 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> -
trunk/wp-includes/default-filters.php
r18932 r19304 220 220 221 221 if ( isset( $_GET['replytocom'] ) ) 222 add_ filter( 'pre_option_blog_public', '__return_zero' );222 add_action( 'wp_head', 'wp_no_robots' ); 223 223 224 224 // Login actions -
trunk/wp-includes/functions.php
r19297 r19304 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 { -
trunk/wp-includes/general-template.php
r19282 r19304 1678 1678 * 1679 1679 * If a blog is marked as not being public then the noindex meta tag will be 1680 * output to tell web robots not to index the page content. 1680 * output to tell web robots not to index the page content. Add this to the wp_head action. 1681 * Typical usage is as a wp_head callback. add_action( 'wp_head', 'noindex' ); 1682 * 1683 * @see wp_no_robots 1681 1684 * 1682 1685 * @since 2.1.0 … … 1685 1688 // If the blog is not public, tell robots to go away. 1686 1689 if ( '0' == get_option('blog_public') ) 1687 echo "<meta name='robots' content='noindex,nofollow' />\n"; 1690 wp_no_robots(); 1691 } 1692 1693 /** 1694 * Display a noindex meta tag. 1695 * 1696 * Outputs a noindex meta tag that tells web robots not to index the page content. 1697 * Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_no_robots' ); 1698 * 1699 * @since 3.3.0 1700 */ 1701 function wp_no_robots() { 1702 echo "<meta name='robots' content='noindex,nofollow' />\n"; 1688 1703 } 1689 1704 -
trunk/wp-login.php
r19281 r19304 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_no_robots' ); 47 46 48 47 if ( empty($wp_error) ) -
trunk/wp-signup.php
r18504 r19304 4 4 require( dirname(__FILE__) . '/wp-load.php' ); 5 5 6 add_action( 'wp_head', ' signuppageheaders' );6 add_action( 'wp_head', 'wp_no_robots' ); 7 7 8 8 require( './wp-blog-header.php' ); … … 17 17 } 18 18 add_action( 'wp_head', 'do_signup_header' ); 19 20 function signuppageheaders() {21 echo "<meta name='robots' content='noindex,nofollow' />\n";22 }23 19 24 20 if ( !is_multisite() ) {
Note: See TracChangeset
for help on using the changeset viewer.