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:
parent
b2c816ff74
commit
43801ded60
|
@ -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
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue