mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
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:
parent
ef97e9bee5
commit
116102089f
@ -424,7 +424,7 @@ final class WP_Customize_Manager {
|
|||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
*/
|
*/
|
||||||
public function after_setup_theme() {
|
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() ) {
|
if ( ! $doing_ajax_or_is_customized && ! validate_current_theme() ) {
|
||||||
wp_redirect( 'themes.php?broken=true' );
|
wp_redirect( 'themes.php?broken=true' );
|
||||||
exit;
|
exit;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user