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
This commit is contained in:
nacin 2012-04-25 21:30:02 +00:00
parent 8d2b539944
commit 981a426119
1 changed files with 1 additions and 2 deletions

View File

@ -1579,8 +1579,7 @@ function _wp_customize_include() {
require( ABSPATH . WPINC . '/class-wp-customize.php' ); require( ABSPATH . WPINC . '/class-wp-customize.php' );
// Init Customize class // Init Customize class
// @todo Dependency injection instead $GLOBALS['wp_customize'] = new WP_Customize;
$GLOBALS['customize'] = new WP_Customize;
} }
add_action( 'plugins_loaded', '_wp_customize_include' ); add_action( 'plugins_loaded', '_wp_customize_include' );