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:
Dominik Schilling (ocean90)
2014-03-28 14:06:10 +00:00
parent 76a167ac5f
commit 2d4b606e14
4 changed files with 214 additions and 272 deletions

View File

@@ -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' ) );