Make WordPress Core

Changeset 21851


Ignore:
Timestamp:
09/14/2012 08:26:20 PM (13 years ago)
Author:
nacin
Message:

"[ ] Discourage search engines from indexing this site". fixes #16416.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r21842 r21851  
    143143<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    144144    <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
    145     <label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/>
     145    <label for="blog-public"><?php _e( 'Allow search engines to index this site' );?></label><br/>
    146146    <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
    147     <label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label>
     147    <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    148148    <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p>
    149149    <?php do_action('blog_privacy_selector'); ?>
    150150<?php else : ?>
    151     <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    152     <?php _e( 'Allow search engines to index this site' ); ?>
    153     <p class="description"><?php _e( 'It is up to search engines to honor a request to not index this site.' ); ?></p>
     151    <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
     152    <?php _e( 'Discourage search engines from indexing this site' ); ?></label>
     153    <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
    154154<?php endif; ?>
    155155</fieldset></td>
  • trunk/wp-includes/formatting.php

    r21850 r21851  
    27982798            break;
    27992799
     2800        case 'blog_public':
     2801            // This is the value if the settings checkbox is not checked on POST. Don't rely on this.
     2802            if ( null === $value )
     2803                $value = 1;
     2804            else
     2805                $value = intval( $value );
     2806            break;
     2807
    28002808        case 'date_format':
    28012809        case 'time_format':
Note: See TracChangeset for help on using the changeset viewer.