Customize: Prevent frontend previewing from causing a customization lock on the changeset.
Props dlh. Amends [41839]. See #42024. Fixes #42975. git-svn-id: https://develop.svn.wordpress.org/trunk@42541 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ec8734bc2e
commit
026cd70e25
@ -607,8 +607,11 @@ final class WP_Customize_Manager {
|
||||
* enabled, then a new UUID will be generated.
|
||||
*
|
||||
* @since 4.9.0
|
||||
* @global string $pagenow
|
||||
*/
|
||||
public function establish_loaded_changeset() {
|
||||
global $pagenow;
|
||||
|
||||
if ( empty( $this->_changeset_uuid ) ) {
|
||||
$changeset_uuid = null;
|
||||
|
||||
@ -637,8 +640,10 @@ final class WP_Customize_Manager {
|
||||
$this->_changeset_uuid = $changeset_uuid;
|
||||
}
|
||||
|
||||
if ( is_admin() && 'customize.php' === $pagenow ) {
|
||||
$this->set_changeset_lock( $this->changeset_post_id() );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback to validate a theme once it is loaded
|
||||
|
Loading…
Reference in New Issue
Block a user