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:
parent
9cd594ef4f
commit
60e9ca67ec
@ -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' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user