From 6f2fe4da8f72f86f1139f3a39fd6d57750a49d69 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Jul 2019 21:33:57 +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. Built from https://develop.svn.wordpress.org/trunk@45644 git-svn-id: http://core.svn.wordpress.org/trunk@45455 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 102cd8de21..fde21eabdb 100644 --- a/wp-includes/class-wp-customize-widgets.php +++ b/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 ] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index c76e981c4d..8b8dca3371 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45643'; +$wp_version = '5.3-alpha-45644'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.