Ticket #16416: 16416.2.diff
File 16416.2.diff, 2.6 KB (added by , 11 years ago) |
---|
-
wp-includes/formatting.php
2799 2799 $value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value); // strips slashes 2800 2800 break; 2801 2801 2802 case 'blog_public' : 2803 // This is the value if the settings checkbox is not checked on POST. Don't rely on this. 2804 if ( null === $value ) 2805 $value = 1; 2806 break; 2807 2802 2808 case 'date_format': 2803 2809 case 'time_format': 2804 2810 case 'mailserver_url': -
wp-admin/options.php
139 139 if ( $unregistered ) 140 140 _deprecated_argument( 'options.php', '2.7', sprintf( __( 'The <code>%1$s</code> setting is unregistered. Unregistered settings are deprecated. See http://codex.wordpress.org/Settings_API' ), $option, $option_page ) ); 141 141 142 $option = trim( $option);142 $option = trim( $option ); 143 143 $value = null; 144 if ( isset($_POST[$option]) ) 145 $value = $_POST[$option]; 146 if ( !is_array($value) ) 147 $value = trim($value); 148 $value = stripslashes_deep($value); 149 update_option($option, $value); 144 if ( isset( $_POST[ $option ] ) ) { 145 $value = $_POST[ $option ]; 146 if ( ! is_array( $value ) ) 147 $value = trim( $value ); 148 $value = stripslashes_deep( $value ); 149 } 150 update_option( $option, $value ); 150 151 } 151 152 } 152 153 -
wp-admin/options-reading.php
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( 'A llow 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( 'Ask search engines <strong>not to</strong> index this site' ); ?></label> 153 <p class="description"><?php _e( "It's up to search engines to honor this request." ); ?></p> 154 154 <?php endif; ?> 155 155 </fieldset></td> 156 156 </tr>