Skip to content

Commit 0294a07

Browse files
committed
Command Palette: Don't include palate on Network Admin
1 parent 35037e6 commit 0294a07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wp-includes/script-loader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,6 +3428,10 @@ function wp_enqueue_classic_theme_styles() {
34283428
* @global array $submenu
34293429
*/
34303430
function wp_enqueue_command_palette_assets() {
3431+
if ( is_network_admin() ) {
3432+
return;
3433+
}
3434+
34313435
global $menu, $submenu;
34323436

34333437
$command_palette_settings = array();

0 commit comments

Comments
 (0)