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()`.

Props dlh.
Fixes #44770.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43611 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 3, 2018
1 parent 89caf3b commit e123695582bedca3e108b2b804dda6bed0b457ed
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 e123695

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