From 28a6760634633042243ae02f78d27cd80d6f8cc8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 11 Aug 2018 12:44:22 +0000 Subject: [PATCH] Customize: Pass missing parameter to dynamic `option_{$option}` filter in `WP_Customize_Widgets::capture_filter_pre_get_option()`. Props dlh. Fixes #44770. git-svn-id: https://develop.svn.wordpress.org/trunk@43561 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php index 31b6ee31ed..93c93efbbd 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -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;