[wp-trac] [WordPress Trac] #30937: Add Customizer state persistence in changesets (formerly “transactions”)
WordPress Trac
noreply at wordpress.org
Mon Oct 31 16:41:09 UTC 2016
#30937: Add Customizer state persistence in changesets (formerly “transactions”)
-------------------------------------------------+-------------------------
Reporter: westonruter | Owner:
Type: feature request | westonruter
Priority: high | Status: closed
Component: Customize | Milestone: 4.7
Severity: normal | Version:
Keywords: has-patch needs-testing needs-unit- | Resolution: fixed
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by westonruter):
In [changeset:"39060"]:
{{{
#!CommitTicketReference repository="" revision="39060"
Customize: Ensure state query params persist in preview through calls to
`history.pushState()` & `history.replaceState()`.
Allow history to be manipulated before DOM ready by sourcing state params
from the current URL instead of from the `wp.customize.settings` object,
since they will be the same anyway. This fixes a JS error since
`wp.customize.settings` is not defined before DOM ready.
Amends [38810].
See #30937.
Fixes #38592.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30937#comment:85>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list