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:
parent
8d2b539944
commit
981a426119
|
@ -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