Changeset 37040 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 03/21/2016 09:58:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r36915 r37040 110 110 * @var array 111 111 */ 112 protected $components = array( 'widgets', 'nav_menus' , 'selective_refresh');112 protected $components = array( 'widgets', 'nav_menus' ); 113 113 114 114 /** … … 259 259 $components = apply_filters( 'customize_loaded_components', $this->components, $this ); 260 260 261 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' ); 262 $this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); 263 261 264 if ( in_array( 'widgets', $components, true ) ) { 262 265 require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); … … 267 270 require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); 268 271 $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 );274 272 } 275 273 … … 1731 1729 'documentTitleTmpl' => $this->get_document_title_template(), 1732 1730 'previewableDevices' => $this->get_previewable_devices(), 1733 'selectiveRefreshEnabled' => isset( $this->selective_refresh ),1734 1731 ); 1735 1732 … … 1979 1976 ) ) ); 1980 1977 1981 if ( isset( $this->selective_refresh ) ) { 1982 $this->selective_refresh->add_partial( 'custom_logo', array( 1983 'settings' => array( 'custom_logo' ), 1984 'selector' => '.custom-logo-link', 1985 'render_callback' => array( $this, '_render_custom_logo_partial' ), 1986 'container_inclusive' => true, 1987 ) ); 1988 } 1978 $this->selective_refresh->add_partial( 'site_logo', array( 1979 'settings' => array( 'site_logo' ), 1980 'selector' => '.site-logo-link', 1981 'render_callback' => array( $this, '_render_site_logo_partial' ), 1982 'container_inclusive' => true, 1983 ) ); 1989 1984 1990 1985 /* Colors */
Note: See TracChangeset
for help on using the changeset viewer.