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.
Merges [39504] onto 4.7 branch.
Fixes #39081 for 4.7.

Built from https://develop.svn.wordpress.org/branches/4.7@39505


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2016-12-05 16:57:35 +00:00
parent c34a4c0ba3
commit 0e7cc25529
3 changed files with 3 additions and 8 deletions

View File

@ -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 );
} );
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-RC2-39503';
$wp_version = '4.7-RC2-39505';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.