Ticket #16416: 16416.diff
File 16416.diff, 2.6 KB (added by , 8 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
136 136 if ( $unregistered ) 137 137 _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 ) ); 138 138 139 $option = trim( $option);139 $option = trim( $option ); 140 140 $value = null; 141 if ( isset($_POST[$option]) ) 142 $value = $_POST[$option]; 143 if ( !is_array($value) ) 144 $value = trim($value); 145 $value = stripslashes_deep($value); 146 update_option($option, $value); 141 if ( isset( $_POST[ $option ] ) ) { 142 $value = $_POST[ $option ]; 143 if ( ! is_array( $value ) ) 144 $value = trim( $value ); 145 $value = stripslashes_deep( $value ); 146 } 147 update_option( $option, $value ); 147 148 } 148 149 } 149 150 -
wp-admin/options-reading.php
150 150 <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> 151 151 <?php do_action('blog_privacy_selector'); ?> 152 152 <?php else : ?> 153 <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value=" 1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />154 <?php _e( 'A llow search engines to index this site' ); ?>155 <p class="description"><?php _e( 'It is up to search engines to honor a request to not index this site.' ); ?></p>153 <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> /> 154 <?php _e( 'Ask search engines to <strong>not index</strong> this site' ); ?></label> 155 <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p> 156 156 <?php endif; ?> 157 157 </fieldset></td> 158 158 </tr>