Customize: Pass missing parameter to dynamic `option_{$option}` filter in `WP_Customize_Widgets::capture_filter_pre_get_option()`.

Props dlh.
Fixes #44770.
Built from https://develop.svn.wordpress.org/trunk@43561


git-svn-id: http://core.svn.wordpress.org/trunk@43390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-08-11 12:45:26 +00:00
parent 64bcc842af
commit b456c7eb12
2 changed files with 2 additions and 2 deletions

View File

@ -1981,7 +1981,7 @@ final class WP_Customize_Widgets {
$value = $this->_captured_options[ $option_name ];
/** This filter is documented in wp-includes/option.php */
$value = apply_filters( 'option_' . $option_name, $value );
$value = apply_filters( 'option_' . $option_name, $value, $option_name );
}
return $value;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43560';
$wp_version = '5.0-alpha-43561';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.