Commit 151d3f10ef for wordpress.org

commit 151d3f10ef4257930319ffd72fe6bbe4ed3600ca
Author: johnbillion <johnbillion@git.wordpress.org>
Date:   Wed Nov 18 13:19:05 2026 +0000

    Customize: Harden nav menu args handling.

    Props xknown, jonsurrell, jeremyfelt.

    Built from https://develop.svn.wordpress.org/trunk@65575


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

diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php
index b093509f2f..8df0392bf2 100644
--- a/wp-includes/class-wp-customize-nav-menus.php
+++ b/wp-includes/class-wp-customize-nav-menus.php
@@ -1530,13 +1530,17 @@ final class WP_Customize_Nav_Menus {
 	 *
 	 * Note that the array is expected to be pre-sorted.
 	 *
+	 * The serialized arguments are prefixed so that the resulting hash cannot
+	 * collide with other `wp_hash()` values computed over serialized data.
+	 *
 	 * @since 4.3.0
+	 * @since 7.1.5 The hash is now domain-separated from other hashes.
 	 *
 	 * @param array $args The arguments to hash.
 	 * @return string Hashed nav menu arguments.
 	 */
 	public function hash_nav_menu_args( $args ) {
-		return wp_hash( serialize( $args ) );
+		return wp_hash( 'customize_nav_menu_args|' . serialize( $args ) );
 	}

 	/**
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 29502d3db3..f37db3c78c 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-RC1-65574';
+$wp_version = '7.2-RC1-65575';

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