[wp-trac] [WordPress Trac] #35617: Export more Customizer app settings in preview
WordPress Trac
noreply at wordpress.org
Tue Jan 26 07:05:25 UTC 2016
#35617: Export more Customizer app settings in preview
-------------------------+-----------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Keywords:
Focuses: javascript |
-------------------------+-----------------
As more logic is added to the Customizer preview (e.g. selective refresh
and inline controls), more of the Customizer's app settings need to be
available.
* Preview nonce.
* Other nonces added via `customize_refresh_nonces`.
* Current theme (stylesheet and whether active).
* The previewed URL.
Some of these are currently being exported to JS with each refresh via the
`WP_Customize_Nav_Menus::export_preview_data()`, and should be moved to
the core app settings exported to `wp.customize.settings`.
Additionally, the nonce settings should be refreshed whenever a `nonce-
refresh` happens in the pane.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list