From 98a29718722c8b710c8028a3563a13c50f92ec20 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Jul 2019 21:32:21 +0000 Subject: [PATCH] Customize: In `WP_Customize_Widgets::capture_filter_pre_update_option()`, return the filtered value instead of `null` when bailing early for ignored options. Props dlh. Fixes #47715. git-svn-id: https://develop.svn.wordpress.org/trunk@45644 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 102cd8de21..fde21eabdb 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -1971,7 +1971,7 @@ final class WP_Customize_Widgets { */ public function capture_filter_pre_update_option( $new_value, $option_name, $old_value ) { if ( $this->is_option_capture_ignored( $option_name ) ) { - return; + return $new_value; } if ( ! isset( $this->_captured_options[ $option_name ] ) ) {