From 2253e42f06779c40cfb1d0d0c469242c123347c5 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 5 Dec 2016 16:55:29 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-controls.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index b79cd2a294..65f5584e8a 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -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 ); } ); }