WordPress.org

Make WordPress Core

Ticket #16416: 16416.3.diff

File 16416.3.diff, 2.6 KB (added by nacin, 8 years ago)
  • wp-includes/formatting.php

     
    27972797                        $value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value); // strips slashes
    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':
    28022810                case 'mailserver_url':
  • wp-admin/options-reading.php

     
    142142<td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend>
    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>
    156156</tr>