[wp-trac] [WordPress Trac] #27767: Customizer: Widget settings are lost when activating a previewed theme

WordPress Trac noreply at wordpress.org
Sat Apr 12 00:25:24 UTC 2014


#27767: Customizer: Widget settings are lost when activating a previewed theme
-----------------------------+--------------------
 Reporter:  ocean90          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  highest omg bbq  |   Milestone:  3.9
Component:  Appearance       |     Version:  trunk
 Severity:  blocker          |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+--------------------

Comment (by westonruter):

 Replying to [comment:5 nacin]:
 > Customizing widgets before activating a theme sounds like one of two
 primary use cases of widgets in the customizer. What am I missing here? Do
 customizing widgets just not work if you're doing "Save & Activate"?

 When switching themes, changes made to widgets in the customizer will be
 lost when you click "Save & Update". But actually, the widget instances
 themselves get saved properly. The problem is specifically with the
 widget-sidebar associations. Those are what get lost.

 If you go in to the `_wp_sidebars_changed()` function and comment out
 `retrieve_widgets(true)` then the newly-added widgets and new widget sort
 orders get saved when switching themes. So there is something here when
 switching themes that is not accounting for changes made to widget areas
 in the customizer.

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


More information about the wp-trac mailing list