WordPress.org

Make WordPress Core

Changeset 37520


Ignore:
Timestamp:
05/23/2016 05:09:57 AM (3 years ago)
Author:
westonruter
Message:

Customize: Replace invalid reference to $_SERVER['customized'] with $_POST['customized'].

Introduced in r31421.
Fixes #36852.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r37491 r37520  
    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' );
Note: See TracChangeset for help on using the changeset viewer.