Skip to content

Commit

Permalink
Script Loader: Remove unused wp-nux CSS dependency.
Browse files Browse the repository at this point in the history
Neither `wp-edit-post` nor `wp-editor` use the styles included in the `wp-nux` CSS file. This removes nux as a dependency from the registration of the two files.

Props flixos90, youknowriad, peterwilsoncc.
Fixes #57827.
See #57643.


git-svn-id: https://develop.svn.wordpress.org/trunk@55628 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
peterwilsoncc committed Apr 4, 2023
1 parent 3f43906 commit 8a6afdd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -1663,12 +1663,10 @@ function wp_default_styles( $styles ) {
'wp-editor',
'wp-edit-blocks',
'wp-block-library',
'wp-nux',
),
'editor' => array(
'wp-components',
'wp-block-editor',
'wp-nux',
'wp-reusable-blocks',
),
'format-library' => array(),
Expand Down

0 comments on commit 8a6afdd

Please sign in to comment.