Commit ba1e77a454 for wordpress.org

commit ba1e77a4542b35ec2b5833aa61ff340fe61b2389
Author: Weston Ruter <weston@xwp.co>
Date:   Wed Sep 17 05:48:31 2025 +0000

    Menus: Fix searchability of post types which contain numeric characters.

    The regular expression needs to correspond to how a post type slug is sanitized by `sanitize_key()` in `register_post_type()`.

    Props kshaner, mindctrl, oglekler.
    Fixes #63633.

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


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

diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php
index ea7de40a84..d63f101007 100644
--- a/wp-admin/includes/nav-menu.php
+++ b/wp-admin/includes/nav-menu.php
@@ -80,7 +80,7 @@ function _wp_ajax_menu_quick_search( $request = array() ) {
 				}
 			}
 		}
-	} elseif ( preg_match( '/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*\b)/', $type, $matches ) ) {
+	} elseif ( preg_match( '/quick-search-(posttype|taxonomy)-([a-zA-Z0-9_-]*\b)/', $type, $matches ) ) {
 		if ( 'posttype' === $matches[1] && get_post_type_object( $matches[2] ) ) {
 			$post_type_obj = _wp_nav_menu_meta_box_object( get_post_type_object( $matches[2] ) );
 			$args          = array_merge(
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 74c4a77f2f..ceaf4991b6 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.9-alpha-60774';
+$wp_version = '6.9-alpha-60775';

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