From 60e9ca67ec30cedb0b0b0b47d8b4fe74b7394518 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 25 Apr 2012 21:30:02 +0000 Subject: [PATCH] Initialize the WP_Customize class in a prefixed global. props mattonomics. fixes #20465. git-svn-id: https://develop.svn.wordpress.org/trunk@20600 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 34c028e816..d9ac780f97 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1579,8 +1579,7 @@ function _wp_customize_include() { require( ABSPATH . WPINC . '/class-wp-customize.php' ); // Init Customize class - // @todo Dependency injection instead - $GLOBALS['customize'] = new WP_Customize; + $GLOBALS['wp_customize'] = new WP_Customize; } add_action( 'plugins_loaded', '_wp_customize_include' );