Make WordPress Core

Ticket #42614: 42614.0.diff

File 42614.0.diff, 707 bytes (added by westonruter, 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 803a509bf0..c39c689bfb 100644
    final class WP_Customize_Manager { 
    893893         */
    894894        public function wp_loaded() {
    895895
     896                if ( $this->changeset_post_id() && 'trash' === get_post_status( $this->changeset_post_id() ) ) {
     897                        return;
     898                }
     899
    896900                // Unconditionally register core types for panels, sections, and controls in case plugin unhooks all customize_register actions.
    897901                $this->register_panel_type( 'WP_Customize_Panel' );
    898902                $this->register_panel_type( 'WP_Customize_Themes_Panel' );