WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2015 10:38:30 PM (7 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/src/wp-admin/customize.php

    r31594 r31705  
    251251            'value'     => $setting->js_value(),
    252252            'transport' => $setting->transport,
     253            'dirty'     => $setting->dirty,
    253254        );
    254255    }
Note: See TracChangeset for help on using the changeset viewer.