|
@@ 330-333 (lines=4) @@
|
| 327 |
|
require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' ); |
| 328 |
|
$this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); |
| 329 |
|
|
| 330 |
|
if ( in_array( 'widgets', $components, true ) ) { |
| 331 |
|
require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); |
| 332 |
|
$this->widgets = new WP_Customize_Widgets( $this ); |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
if ( in_array( 'nav_menus', $components, true ) ) { |
| 336 |
|
require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); |
|
@@ 335-338 (lines=4) @@
|
| 332 |
|
$this->widgets = new WP_Customize_Widgets( $this ); |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
if ( in_array( 'nav_menus', $components, true ) ) { |
| 336 |
|
require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); |
| 337 |
|
$this->nav_menus = new WP_Customize_Nav_Menus( $this ); |
| 338 |
|
} |
| 339 |
|
|
| 340 |
|
add_action( 'setup_theme', array( $this, 'setup_theme' ) ); |
| 341 |
|
add_action( 'wp_loaded', array( $this, 'wp_loaded' ) ); |