[wp-trac] [WordPress Trac] #35616: Align settings in Customizer preview with settings in Customizer pane
WordPress Trac
noreply at wordpress.org
Tue Jan 26 06:50:44 UTC 2016
#35616: Align settings in Customizer preview with settings in Customizer pane
-------------------------+-----------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Keywords:
Focuses: javascript |
-------------------------+-----------------
The JS models for Customizer settings in the Customizer preview are
somewhat shallow representations of the settings in the Customizer pane.
Indeed, the objects in the preview are mere `wp.customize.Value` objects
as opposed to `wp.customize.Setting` objects. A few issues:
* The setting objects in the preview lack an `id` property.
* When new settings get instantiated in the pane and get synced into the
preview, the settings are just silently ignored as opposed to being
created on demand as is when the `settings` message is received by the
preview.
* The `_dirty` flags for settings in the preview don't always correspond
to the corresponding settings in the pane, e.g. they get reset after a
refresh and they fail to reset after `saved`.
These improvements are key for performing more logic inline to the
preview, such as selective refresh (#27355).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35616>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list