WordPress.org

Make WordPress Core

Changeset 45644


Ignore:
Timestamp:
07/16/2019 09:32:21 PM (13 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r45599 r45644  
    19721972    public function capture_filter_pre_update_option( $new_value, $option_name, $old_value ) {
    19731973        if ( $this->is_option_capture_ignored( $option_name ) ) {
    1974             return;
     1974            return $new_value;
    19751975        }
    19761976
Note: See TracChangeset for help on using the changeset viewer.