Changeset 21851
- Timestamp:
- 09/14/2012 08:26:20 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r21842 r21851 143 143 <?php if ( has_action( 'blog_privacy_selector' ) ) : ?> 144 144 <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/> 146 146 <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> 148 148 <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p> 149 149 <?php do_action('blog_privacy_selector'); ?> 150 150 <?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> 154 154 <?php endif; ?> 155 155 </fieldset></td> -
trunk/wp-includes/formatting.php
r21850 r21851 2798 2798 break; 2799 2799 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 2800 2808 case 'date_format': 2801 2809 case 'time_format':
Note: See TracChangeset
for help on using the changeset viewer.