From cb0da304a4e1ebccdb07285fdacb3aa1e4107e65 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 3 Sep 2018 20:52:26 +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. Built from https://develop.svn.wordpress.org/branches/4.9@43611 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43440 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-widgets.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php index a54794b06d..9df14c0f2f 100644 --- a/wp-includes/class-wp-customize-widgets.php +++ b/wp-includes/class-wp-customize-widgets.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 5524988b16..06f5b0a78d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.9-alpha-43610'; +$wp_version = '4.9.9-alpha-43611'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.