Make WordPress Core

Ticket #42975: 42975.diff

File 42975.diff, 768 bytes (added by dlh, 7 years ago)
  • src/wp-includes/class-wp-customize-manager.php

    diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
    index fe22d87a06..5dac5c00ca 100644
    final class WP_Customize_Manager { 
    609609         * @since 4.9.0
    610610         */
    611611        public function establish_loaded_changeset() {
     612                global $pagenow;
     613
    612614                if ( empty( $this->_changeset_uuid ) ) {
    613615                        $changeset_uuid = null;
    614616
    final class WP_Customize_Manager { 
    637639                        $this->_changeset_uuid = $changeset_uuid;
    638640                }
    639641
    640                 $this->set_changeset_lock( $this->changeset_post_id() );
     642                if ( is_admin() && 'customize.php' === $pagenow ) {
     643                        $this->set_changeset_lock( $this->changeset_post_id() );
     644                }
    641645        }
    642646
    643647        /**