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:
parent
dd70966885
commit
e9bed0f3a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user