Customize: Prevent history.replaceState()
and history.pushState()
calls from causing error in customize preview before DOM ready.
Amends [41597]. See #39896. Fixes #42414. git-svn-id: https://develop.svn.wordpress.org/trunk@42108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dc3c350eab
commit
884fa6476e
@ -36,7 +36,7 @@
|
||||
newQueryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
|
||||
|
||||
newQueryParams.customize_changeset_uuid = oldQueryParams.customize_changeset_uuid;
|
||||
if ( api.settings.changeset.autosaved ) {
|
||||
if ( oldQueryParams.customize_autosaved ) {
|
||||
newQueryParams.customize_autosaved = 'on';
|
||||
}
|
||||
if ( oldQueryParams.customize_theme ) {
|
||||
|
Loading…
Reference in New Issue
Block a user