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

This prevents a potential fatal error from an `ArgumentCountError` exception in PHP 7.1 or greater

Props dlh.

Merges [43561] to the 5.0 branch.
Fixes #44770.
Built from https://develop.svn.wordpress.org/branches/5.0@44387


git-svn-id: http://core.svn.wordpress.org/branches/5.0@44217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2019-01-03 18:55:45 +00:00
parent 65ecdb0109
commit ec6c7dbfdc
2 changed files with 2 additions and 2 deletions

View File

@ -1953,7 +1953,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.3-alpha-44384';
$wp_version = '5.0.3-alpha-44387';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.