From bb3ffecc32350be55786d898e59ac371cf5cb7b8 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 21 Feb 2017 06:49:39 +0000 Subject: [PATCH] Customize: Update `customize.php` URL with `changeset_uuid` param the instant a change is made instead of deferring until the changeset update request responds. Props asalce, westonruter. Merges [39686] to the 4.7 branch. Fixes #39227. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40093 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-controls.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index e6270ee0e6..5987bf4ed7 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -4696,7 +4696,10 @@ editShortcutVisibility( 'visible' ); api.bind( 'change', function() { - state('saved').set( false ); + if ( state( 'saved' ).get() ) { + state( 'saved' ).set( false ); + populateChangesetUuidParam( true ); + } }); saving.bind( function( isSaving ) {