WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2015 10:38:30 PM (6 years ago)
Author:
ocean90
Message:

Customizer: Fix previewing and applying widgets when previewing another theme.

  • Unset wp_get_sidebars_widgets()' non-admin cache var $_wp_sidebars_widgets in Customize theme preview.
  • Add WP_Customize_Setting::$dirty so that settings can be initially-dirty when the Customizer loads.
  • Mark old_sidebars_widgets_data setting initially-dirty.
  • Mark all sidebars_widgets settings as initially-dirty during theme switch.

props westonruter.
see #31484.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/setting.php

    r31622 r31705  
    4545        $this->assertFalse( has_filter( "customize_sanitize_{$setting->id}" ) );
    4646        $this->assertFalse( has_filter( "customize_sanitize_js_{$setting->id}" ) );
     47        $this->assertEquals( false, $setting->dirty );
    4748    }
    4849
Note: See TracChangeset for help on using the changeset viewer.