Commit aaf46f5fa3 for wordpress.org

commit aaf46f5fa3ca029d7bf942457450250da8e34b9a
Author: wildworks <wildworks@git.wordpress.org>
Date:   Tue Nov 4 07:05:31 2025 +0000

    Command Palette: Add network admin check

    To prevent the registration of commands that would cause a 404 error in the network admin screen, pass the result of the `is_network_admin()` check to the command palette initialization function.

    Follow-up to [61022].

    Props jorbin, ntsekouras, soean, tobiasbg
    Fixes #64125.
    Built from https://develop.svn.wordpress.org/trunk@61121


    git-svn-id: http://core.svn.wordpress.org/trunk@60457 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index eda19a8b1f..ac5d71a725 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -3430,7 +3430,9 @@ function wp_enqueue_classic_theme_styles() {
 function wp_enqueue_command_palette_assets() {
 	global $menu, $submenu;

-	$command_palette_settings = array();
+	$command_palette_settings = array(
+		'is_network_admin' => is_network_admin(),
+	);

 	if ( $menu ) {
 		$menu_commands = array();
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 1e8e7f3327..9693ee76a9 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.9-beta2-61120';
+$wp_version = '6.9-beta2-61121';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.