From 981a4261195550f3e1832c4c23f2cc36966d1631 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@20600 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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' );