diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 7fb87bc88e..c34881cd4c 100644
|
|
|
|
| 8222 | 8222 | |
| 8223 | 8223 | // Set up initial notifications. |
| 8224 | 8224 | (function() { |
| | 8225 | var removedQueryParams = []; |
| 8225 | 8226 | |
| 8226 | 8227 | /** |
| 8227 | 8228 | * Obtain the URL to restore the autosave. |
| … |
… |
|
| 8318 | 8319 | |
| 8319 | 8320 | if ( api.settings.changeset.autosaved ) { |
| 8320 | 8321 | api.state( 'saved' ).set( false ); |
| 8321 | | stripParamsFromLocation( [ 'customize_autosaved' ] ); // Remove param when restoring autosave revision. |
| 8322 | | } else if ( ! api.settings.changeset.branching && 'auto-draft' === api.settings.changeset.status ) { |
| 8323 | | stripParamsFromLocation( [ 'changeset_uuid' ] ); // Remove UUID when restoring autosave auto-draft. |
| | 8322 | removedQueryParams.push( 'customize_autosaved' ); |
| | 8323 | } |
| | 8324 | if ( ! api.settings.changeset.branching && ( ! api.settings.changeset.status || 'auto-draft' === api.settings.changeset.status ) ) { |
| | 8325 | removedQueryParams.push( 'changeset_uuid' ); // Remove UUID when restoring autosave auto-draft. |
| | 8326 | } |
| | 8327 | if ( removedQueryParams.length > 0 ) { |
| | 8328 | stripParamsFromLocation( removedQueryParams ); |
| 8324 | 8329 | } |
| 8325 | 8330 | if ( api.settings.changeset.latestAutoDraftUuid || api.settings.changeset.hasAutosaveRevision ) { |
| 8326 | 8331 | addAutosaveRestoreNotification(); |