Ticket #36761: 36761.patch
File 36761.patch, 1.0 KB (added by , 8 years ago) |
---|
-
src/wp-includes/option.php
295 295 return false; 296 296 297 297 /** This filter is documented in wp-includes/option.php */ 298 if ( apply_filters( 'default_option_' . $option, false ) === $old_value ) {298 if ( apply_filters( 'default_option_' . $option, false, $option ) === $old_value ) { 299 299 // Default setting for new options is 'yes'. 300 300 if ( null === $autoload ) { 301 301 $autoload = 'yes'; … … 416 416 $notoptions = wp_cache_get( 'notoptions', 'options' ); 417 417 if ( !is_array( $notoptions ) || !isset( $notoptions[$option] ) ) 418 418 /** This filter is documented in wp-includes/option.php */ 419 if ( apply_filters( 'default_option_' . $option, false ) !== get_option( $option ) )419 if ( apply_filters( 'default_option_' . $option, false, $option ) !== get_option( $option ) ) 420 420 return false; 421 421 422 422 $serialized_value = maybe_serialize( $value );