Skip to content
Permalink
Browse files

Customize: Pass missing parameter to `dynamic option_{$option}` filte…

…r 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.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44387 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
desrosj committed Jan 3, 2019
1 parent c49005a commit d55618e69c9fbccbbf79564cbbc74e6b8bf7bb88
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-includes/class-wp-customize-widgets.php
@@ -1953,7 +1953,7 @@ public function capture_filter_pre_get_option( $value ) {
$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;

0 comments on commit d55618e

Please sign in to comment.
You can’t perform that action at this time.