Commit 70f9ca45d8 for wordpress.org
commit 70f9ca45d86acae7f20a54d04183f0b1e8107749
Author: joedolson <joedolson@git.wordpress.org>
Date: Sun Oct 11 23:10:55 2026 +0000
Twenty Twenty Three: Add aria-label to primary menu.
HTML templates can't contain translatable strings, and the primary menu needs a default ARIA label. Move the primary navigation into a hidden pattern and add the ARIA label.
Developed in https://github.com/WordPress/wordpress-develop/pull/14091.
Props joedolson, rahultank, mukesh27, dhruvang21.
Fixes #66195.
Built from https://develop.svn.wordpress.org/trunk@64303
git-svn-id: http://core.svn.wordpress.org/trunk@63453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-content/themes/twentytwentythree/parts/header.html b/wp-content/themes/twentytwentythree/parts/header.html
index 8a941302af..5c0583ecfe 100644
--- a/wp-content/themes/twentytwentythree/parts/header.html
+++ b/wp-content/themes/twentytwentythree/parts/header.html
@@ -5,7 +5,7 @@
<!-- wp:site-title {"level":0} /-->
<!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left"}} -->
<div class="wp-block-group">
- <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} /-->
+ <!-- wp:pattern {"slug":"twentytwentythree/hidden-navigation"} /-->
</div>
<!-- /wp:group -->
</div>
diff --git a/wp-content/themes/twentytwentythree/patterns/hidden-navigation.php b/wp-content/themes/twentytwentythree/patterns/hidden-navigation.php
new file mode 100644
index 0000000000..2c20fabf80
--- /dev/null
+++ b/wp-content/themes/twentytwentythree/patterns/hidden-navigation.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * Title: Hidden Navigation
+ * Slug: twentytwentythree/hidden-navigation
+ * Inserter: no
+ *
+ * @package WordPress
+ * @subpackage Twenty_Twenty_Three
+ * @since Twenty Twenty-Three 1.8
+ */
+
+?>
+
+<!-- wp:navigation {"ariaLabel":"<?php esc_attr_e( 'Primary', 'twentytwentythree' ); ?>","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} /-->
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 4f516bc1aa..a3e56da698 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-64302';
+$wp_version = '7.2-alpha-64303';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.