Changeset 36586 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 02/19/2016 06:40:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r36532 r36586 68 68 69 69 /** 70 * Methods and properties dealing with selective refresh in the Customizer preview. 71 * 72 * @since 4.5.0 73 * @access public 74 * @var WP_Customize_Selective_Refresh 75 */ 76 public $selective_refresh; 77 78 /** 70 79 * Registered instances of WP_Customize_Setting. 71 80 * … … 101 110 * @var array 102 111 */ 103 protected $components = array( 'widgets', 'nav_menus' );112 protected $components = array( 'widgets', 'nav_menus', 'selective_refresh' ); 104 113 105 114 /** … … 250 259 $components = apply_filters( 'customize_loaded_components', $this->components, $this ); 251 260 252 if ( in_array( 'widgets', $components ) ) {261 if ( in_array( 'widgets', $components, true ) ) { 253 262 require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); 254 263 $this->widgets = new WP_Customize_Widgets( $this ); 255 264 } 256 if ( in_array( 'nav_menus', $components ) ) { 265 266 if ( in_array( 'nav_menus', $components, true ) ) { 257 267 require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); 258 268 $this->nav_menus = new WP_Customize_Nav_Menus( $this ); 269 } 270 271 if ( in_array( 'selective_refresh', $components, true ) ) { 272 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' ); 273 $this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); 259 274 } 260 275 … … 1712 1727 'documentTitleTmpl' => $this->get_document_title_template(), 1713 1728 'previewableDevices' => $this->get_previewable_devices(), 1729 'selectiveRefreshEnabled' => isset( $this->selective_refresh ), 1714 1730 ); 1715 1731
Note: See TracChangeset
for help on using the changeset viewer.