WordPress.org

Make WordPress Core

Changeset 42108


Ignore:
Timestamp:
11/02/17 19:26:23 (3 weeks ago)
Author:
westonruter
Message:

Customize: Prevent history.replaceState() and history.pushState() calls from causing error in customize preview before DOM ready.

Amends [41597].
See #39896.
Fixes #42414.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-preview.js

    r41804 r42108  
    3737 
    3838            newQueryParams.customize_changeset_uuid = oldQueryParams.customize_changeset_uuid; 
    39             if ( api.settings.changeset.autosaved ) { 
     39            if ( oldQueryParams.customize_autosaved ) { 
    4040                newQueryParams.customize_autosaved = 'on'; 
    4141            } 
Note: See TracChangeset for help on using the changeset viewer.