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
This commit is contained in:
Andrew Nacin 2012-04-25 21:30:02 +00:00
parent 9cd594ef4f
commit 60e9ca67ec
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' );
// 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' );