[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
Tue Mar 10 22:38:32 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 dev-feedback  |     Focuses:  javascript
------------------------------------+-------------------------

Comment (by ocean90):

 In [changeset:"31705"]:
 {{{
 #!CommitTicketReference repository="" revision="31705"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31484#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list