mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Widget Customizer: Convert static WP_Customize_Widgets class into instantiated class and merge Options_Transaction into WP_Customize_Widgets.
see #27504. props westonruter. git-svn-id: https://develop.svn.wordpress.org/trunk@27816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -37,6 +37,13 @@ final class WP_Customize_Manager {
|
||||
*/
|
||||
protected $previewing = false;
|
||||
|
||||
/**
|
||||
* Methods and properties deailing with managing widgets in the customizer.
|
||||
*
|
||||
* @var WP_Customize_Widgets
|
||||
*/
|
||||
public $widgets;
|
||||
|
||||
protected $settings = array();
|
||||
protected $sections = array();
|
||||
protected $controls = array();
|
||||
@@ -63,7 +70,7 @@ final class WP_Customize_Manager {
|
||||
require( ABSPATH . WPINC . '/class-wp-customize-control.php' );
|
||||
require( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
|
||||
|
||||
WP_Customize_Widgets::setup(); // This should be integrated.
|
||||
$this->widgets = new WP_Customize_Widgets( $this );
|
||||
|
||||
add_filter( 'wp_die_handler', array( $this, 'wp_die_handler' ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user