[wp-trac] [WordPress Trac] #31484: Widgets in Customizer during theme preview fail to preview widgets with prior sidebars_widgets theme mod and fail to apply upon activation
WordPress Trac
noreply at wordpress.org
Mon Mar 2 01:09:51 UTC 2015
#31484: Widgets in Customizer during theme preview fail to preview widgets with
prior sidebars_widgets theme mod and fail to apply upon activation
--------------------------+-------------------------
Reporter: westonruter | Owner: ocean90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.1.2
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Changes (by westonruter):
* keywords: needs-patch => has-patch
* owner: => ocean90
* status: new => assigned
Comment:
In [attachment:31484.diff]:
* Unset `wp_get_sidebars_widgets()`' non-admin cache var
`$_wp_sidebars_widgets` in Customize theme preview so that we can
override.
* Add `WP_Customize_Setting::$dirty` so that settings can be initially-
dirty when the Customizer loads, and use on the
`old_sidebars_widgets_data` setting.
* Mark all `sidebars_widgets` settings as initially-dirty during theme
switch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31484#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list