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
This commit is contained in:
Sergey Biryukov 2019-07-16 21:33:57 +00:00
parent 62216de5d4
commit 6f2fe4da8f
2 changed files with 2 additions and 2 deletions

View File

@ -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 ] ) ) {

View File

@ -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.