diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index 9cac338..927181b 100644
|
|
|
final class WP_Customize_Manager { |
| 110 | 110 | require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' ); |
| 111 | 111 | require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' ); |
| 112 | 112 | require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' ); |
| 113 | | require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); |
| 114 | | require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); |
| 115 | 113 | |
| 116 | | $this->widgets = new WP_Customize_Widgets( $this ); |
| 117 | | $this->nav_menus = new WP_Customize_Nav_Menus( $this ); |
| | 114 | /** |
| | 115 | * Fires at the beginning of WP_Customize_Manager's constructor. |
| | 116 | * |
| | 117 | * Allows plugins to add/override Customizer features. |
| | 118 | * |
| | 119 | * @see WP_Customize_Manager::__construct(). |
| | 120 | * @since 4.4.0 |
| | 121 | * |
| | 122 | * @param WP_Customize_Manager $this WP_Customize_Manager instance. |
| | 123 | */ |
| | 124 | do_action( 'customize_manager_construct', $this ); |
| | 125 | |
| | 126 | if ( ! isset( $this->widgets ) ) { |
| | 127 | require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); |
| | 128 | $this->widgets = new WP_Customize_Widgets( $this ); |
| | 129 | } |
| | 130 | |
| | 131 | if ( ! isset( $this->nav_menus ) ) { |
| | 132 | require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); |
| | 133 | $this->nav_menus = new WP_Customize_Nav_Menus( $this ); |
| | 134 | } |
| 118 | 135 | |
| 119 | 136 | add_filter( 'wp_die_handler', array( $this, 'wp_die_handler' ) ); |
| 120 | 137 | |