Customize: Ensure `changeset_uuid` query param is removed from the `customize.php` window's location once a changeset has been published (committed) with starter content.
Props westonruter, dlh for testing. See #30937. Fixes #39081. git-svn-id: https://develop.svn.wordpress.org/trunk@39504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
206b11aa40
commit
2253e42f06
|
@ -4746,13 +4746,8 @@
|
|||
};
|
||||
|
||||
if ( history.replaceState ) {
|
||||
saved.bind( function( isSaved ) {
|
||||
if ( ! isSaved ) {
|
||||
populateChangesetUuidParam( true );
|
||||
}
|
||||
} );
|
||||
changesetStatus.bind( function( newStatus ) {
|
||||
populateChangesetUuidParam( '' !== newStatus );
|
||||
populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus );
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue