summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-wp-customize-manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/class-wp-customize-manager.php')
-rw-r--r--wp-includes/class-wp-customize-manager.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php
index baad9fe..8efcfc1 100644
--- a/wp-includes/class-wp-customize-manager.php
+++ b/wp-includes/class-wp-customize-manager.php
@@ -100,7 +100,7 @@ final class WP_Customize_Manager {
* @since 4.5.0
* @var array
*/
- protected $components = array( 'widgets', 'nav_menus' );
+ protected $components = array( 'nav_menus' );
/**
* Registered instances of WP_Customize_Section.
@@ -286,6 +286,11 @@ final class WP_Customize_Manager {
$args['messenger_channel'] = sanitize_key( wp_unslash( $_REQUEST['customize_messenger_channel'] ) );
}
+ // Do not load 'widgets' component if a block theme is activated.
+ if ( ! wp_is_block_theme() ) {
+ $this->components[] = 'widgets';
+ }
+
$this->original_stylesheet = get_stylesheet();
$this->theme = wp_get_theme( 0 === validate_file( $args['theme'] ) ? $args['theme'] : null );
$this->messenger_channel = $args['messenger_channel'];
@@ -5695,7 +5700,7 @@ final class WP_Customize_Manager {
$section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' );
$section_description .= sprintf(
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text"> %3$s</span></a>',
- esc_url( __( 'https://wordpress.org/documentation/article/css/' ) ),
+ esc_url( __( 'https://developer.wordpress.org/advanced-administration/wordpress/css/' ) ),
__( 'Learn more about CSS' ),
/* translators: Hidden accessibility text. */
__( '(opens in a new tab)' )