mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
Options: Pass the $passed_default
parameter to the default_option_{$option}
filter in add_option()
.
This was missed in [38910]. Merge of [39382] to the 4.7 branch. Props joehoyle, lucasstark. See #38176, #38930. Built from https://develop.svn.wordpress.org/branches/4.7@39383 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9650704689
commit
08ff35374b
@ -421,7 +421,7 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' )
|
||||
$notoptions = wp_cache_get( 'notoptions', 'options' );
|
||||
if ( !is_array( $notoptions ) || !isset( $notoptions[$option] ) )
|
||||
/** This filter is documented in wp-includes/option.php */
|
||||
if ( apply_filters( 'default_option_' . $option, false, $option ) !== get_option( $option ) )
|
||||
if ( apply_filters( 'default_option_' . $option, false, $option, false ) !== get_option( $option ) )
|
||||
return false;
|
||||
|
||||
$serialized_value = maybe_serialize( $value );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-RC1-39381';
|
||||
$wp_version = '4.7-RC1-39383';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user