[wp-trac] [WordPress Trac] #27767: Customizer: Widget settings are lost when activating a previewed theme
WordPress Trac
noreply at wordpress.org
Sun Apr 13 10:59:47 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: has-patch needs-testing | Focuses:
-------------------------------------+--------------------
Comment (by westonruter):
I believe I've nailed down the problem. In the latest patch
[attachment:27767-07.patch 27767-07.patch]:
* Run `retrieve_widgets()` earlier, and only when initially opening
customizer in a theme switch. (The results of this function get passed
along subsequently by Customizer POSTs.)
* Likewise, initially filter `sidebars_widgets` option to be the
retrieved widgets. This restores any widget area configuration previously
used on the previewed theme.
* Store the old theme's `sidebars_widgets` in a new customizer setting
which gets supplied into the `sidebars_widgets` theme mod after theme
activation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27767#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list