[wp-trac] [WordPress Trac] #31484: Widgets appearing in Customizer preview during a theme preview may not correspond to controls in Widgets panel
WordPress Trac
noreply at wordpress.org
Fri Feb 27 23:28:54 UTC 2015
#31484: Widgets appearing in Customizer preview during a theme preview may not
correspond to controls in Widgets panel
--------------------------+-------------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.1.2
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by westonruter):
There is a simple workaround, for which I've written a monkey-patch
plugin, which simply involves making all `sidebars_widgets` settings
initially dirty when loading the Customizer for a theme preview.
The plugin is located here:
https://gist.github.com/westonruter/c0b94561ec1adac966af
However, the best solution would be to make sure the WordPress initializes
the Customizer preview with the proper previewed-theme's sidebars instead
of using the ones from the currently-active theme. I'm not sure why the
Customizer Pane is showing the previewed theme's widgets while the
Customizer preview is retaining the active theme's widgets.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31484#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list