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

Introduced in r31421.
Fixes #36852.

Built from https://develop.svn.wordpress.org/trunk@37520


git-svn-id: http://core.svn.wordpress.org/trunk@37488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2016-05-23 05:10:27 +00:00
parent ef97e9bee5
commit 116102089f
2 changed files with 2 additions and 2 deletions

View File

@ -424,7 +424,7 @@ final class WP_Customize_Manager {
* @since 3.4.0
*/
public function after_setup_theme() {
$doing_ajax_or_is_customized = ( $this->doing_ajax() || isset( $_SERVER['customized'] ) );
$doing_ajax_or_is_customized = ( $this->doing_ajax() || isset( $_POST['customized'] ) );
if ( ! $doing_ajax_or_is_customized && ! validate_current_theme() ) {
wp_redirect( 'themes.php?broken=true' );
exit;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37519';
$wp_version = '4.6-alpha-37520';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.