Skip to content

Commit 8c86113

Browse files
committed
Command Palette: Add network admin check
1 parent 70ca20b commit 8c86113

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wp-includes/script-loader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3430,7 +3430,9 @@ function wp_enqueue_classic_theme_styles() {
34303430
function wp_enqueue_command_palette_assets() {
34313431
global $menu, $submenu;
34323432

3433-
$command_palette_settings = array();
3433+
$command_palette_settings = array(
3434+
'is_network_admin' => is_network_admin(),
3435+
);
34343436

34353437
if ( $menu ) {
34363438
$menu_commands = array();

0 commit comments

Comments
 (0)