From 6aaf01313a71fd8a1e35c4ef3ce187d40168b4ad Mon Sep 17 00:00:00 2001 From: Isabel Brison Date: Mon, 3 Jul 2023 06:48:46 +0000 Subject: [PATCH] =?UTF-8?q?Editor:=20Enqueue=C2=A0commands=C2=A0package=20?= =?UTF-8?q?styles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enqueues the stylesheet from the commands package which holds the CSS for the Command Palette feature. Props wildworks. Fixes #58667. git-svn-id: https://develop.svn.wordpress.org/trunk@56125 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/script-loader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 3de06605f1..80f48d43a5 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -1670,12 +1670,14 @@ function wp_default_styles( $styles ) { 'block-library' => array(), 'block-directory' => array(), 'components' => array(), + 'commands' => array(), 'edit-post' => array( 'wp-components', 'wp-block-editor', 'wp-editor', 'wp-edit-blocks', 'wp-block-library', + 'wp-commands', ), 'editor' => array( 'wp-components', @@ -1707,6 +1709,7 @@ function wp_default_styles( $styles ) { 'wp-components', 'wp-block-editor', 'wp-edit-blocks', + 'wp-commands', ), ); @@ -1762,6 +1765,7 @@ function wp_default_styles( $styles ) { 'wp-block-editor', 'wp-block-library', 'wp-block-directory', + 'wp-commands', 'wp-components', 'wp-customize-widgets', 'wp-edit-post',