Make WordPress Core

Ticket #42395: 42395.diff

File 42395.diff, 811 bytes (added by dlh, 6 years ago)
  • src/wp-includes/class-wp-customize-manager.php

     
    11751175
    11761176                $changeset_data = array();
    11771177                if ( $this->changeset_post_id() ) {
     1178                        /*
     1179                         * Don't re-import starter content into a previously saved changeset.
     1180                         *
     1181                         * When theme switches can be drafted or scheduled, this condition
     1182                         * might also need to check whether the theme is active or "pending."
     1183                         */
     1184                        if ( ( 'auto-draft' !== get_post_status( $this->changeset_post_id() ) ) && $this->is_theme_active() ) {
     1185                                return;
     1186                        }
     1187
    11781188                        $changeset_data = $this->get_changeset_post_data( $this->changeset_post_id() );
    11791189                }
    11801190