Changeset 23510
- Timestamp:
- 02/28/2013 04:49:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/option.php
r22633 r23510 105 105 */ 106 106 function wp_protect_special_option( $option ) { 107 $protected = array( 'alloptions', 'notoptions' ); 108 if ( in_array( $option, $protected ) ) 107 if ( 'alloptions' === $option || 'notoptions' === $option ) 109 108 wp_die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) ); 110 109 } … … 360 359 function delete_option( $option ) { 361 360 global $wpdb; 361 362 $option = trim( $option ); 363 if ( empty( $option ) ) 364 return false; 362 365 363 366 wp_protect_special_option( $option );
Note: See TracChangeset
for help on using the changeset viewer.