Changeset 42114
- Timestamp:
- 11/03/2017 05:36:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r42113 r42114 8249 8249 // Set up initial notifications. 8250 8250 (function() { 8251 var removedQueryParams = []; 8251 8252 8252 8253 /** … … 8345 8346 if ( api.settings.changeset.autosaved ) { 8346 8347 api.state( 'saved' ).set( false ); 8347 stripParamsFromLocation( [ 'customize_autosaved' ] ); // Remove param when restoring autosave revision. 8348 } else if ( ! api.settings.changeset.branching && 'auto-draft' === api.settings.changeset.status ) { 8349 stripParamsFromLocation( [ 'changeset_uuid' ] ); // Remove UUID when restoring autosave auto-draft. 8348 removedQueryParams.push( 'customize_autosaved' ); 8349 } 8350 if ( ! api.settings.changeset.branching && ( ! api.settings.changeset.status || 'auto-draft' === api.settings.changeset.status ) ) { 8351 removedQueryParams.push( 'changeset_uuid' ); // Remove UUID when restoring autosave auto-draft. 8352 } 8353 if ( removedQueryParams.length > 0 ) { 8354 stripParamsFromLocation( removedQueryParams ); 8350 8355 } 8351 8356 if ( api.settings.changeset.latestAutoDraftUuid || api.settings.changeset.hasAutosaveRevision ) {
Note: See TracChangeset
for help on using the changeset viewer.