Make WordPress Core


Ignore:
Timestamp:
03/28/2014 02:06:10 PM (13 years ago)
Author:
ocean90
Message:

Widget Customizer: Convert static WP_Customize_Widgets class into instantiated class and merge Options_Transaction into WP_Customize_Widgets.

see #27504.
props westonruter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r27433 r27816  
    3838        protected $previewing = false;
    3939
     40        /**
     41         * Methods and properties deailing with managing widgets in the customizer.
     42         *
     43         * @var WP_Customize_Widgets
     44         */
     45        public $widgets;
     46
    4047        protected $settings = array();
    4148        protected $sections = array();
    … …  
    6471                require( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
    6572
    66                 WP_Customize_Widgets::setup(); // This should be integrated.
     73                $this->widgets = new WP_Customize_Widgets( $this );
    6774
    6875                add_filter( 'wp_die_handler', array( $this, 'wp_die_handler' ) );
Note: See TracChangeset for help on using the changeset viewer.