Skip to content

Commit

Permalink
Editor: Enqueue commands package styles.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tellthemachines committed Jul 3, 2023
1 parent 62b286f commit 6aaf013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -1707,6 +1709,7 @@ function wp_default_styles( $styles ) {
'wp-components',
'wp-block-editor',
'wp-edit-blocks',
'wp-commands',
),
);

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 6aaf013

Please sign in to comment.