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

Introduced in r31421.
Fixes #36852.


git-svn-id: https://develop.svn.wordpress.org/trunk@37520 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2016-05-23 05:09:57 +00:00
parent dd70966885
commit e9bed0f3a5
1 changed files with 1 additions and 1 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;