From 8a6afdd52e572ded7aa350f0d24f40da799596e9 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 4 Apr 2023 23:35:21 +0000 Subject: [PATCH] Script Loader: Remove unused `wp-nux` CSS dependency. 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 --- src/wp-includes/script-loader.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index e0e01299a097d..ba94e3b3d2756 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -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(),