WordPress.org

Make WordPress Core

Ticket #36852: 36852.diff

File 36852.diff, 670 bytes (added by westonruter, 4 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 0052a1a..2cdf311 100644
    final class WP_Customize_Manager { 
    424424         * @since 3.4.0
    425425         */
    426426        public function after_setup_theme() {
    427                 $doing_ajax_or_is_customized = ( $this->doing_ajax() || isset( $_SERVER['customized'] ) );
     427                $doing_ajax_or_is_customized = ( $this->doing_ajax() || isset( $_POST['customized'] ) );
    428428                if ( ! $doing_ajax_or_is_customized && ! validate_current_theme() ) {
    429429                        wp_redirect( 'themes.php?broken=true' );
    430430                        exit;