Customize: Make sure `saved` state is initially `false` when restoring autosave revision so that Save button will be enabled.

Amends [41597].
Props sayedwp.
See #39896.
Fixes #42143.

Built from https://develop.svn.wordpress.org/trunk@41826


git-svn-id: http://core.svn.wordpress.org/trunk@41660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-10-11 05:57:48 +00:00
parent b2c816ff74
commit 43801ded60
3 changed files with 4 additions and 3 deletions

View File

@ -7756,6 +7756,7 @@
}
if ( api.settings.changeset.autosaved ) {
api.state( 'saved' ).set( false );
stripParamsFromLocation( [ 'customize_autosaved' ] ); // Remove param when restoring autosave revision.
} else if ( ! api.settings.changeset.branching && 'auto-draft' === api.settings.changeset.status ) {
stripParamsFromLocation( [ 'changeset_uuid' ] ); // Remove UUID when restoring autosave auto-draft.

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-beta1-41825';
$wp_version = '4.9-beta1-41826';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.