From b2d674c7ac661226aed44fbbdcaea08840acd982 Mon Sep 17 00:00:00 2001 From: joedolson Date: Mon, 3 Mar 2025 18:45:25 +0000 Subject: [PATCH] Bundled Themes: Add `aria-current="page"` on header links. Mark links that point to the current URL in bundled theme headers with `aria-current="page"` to inform screen reader users that this link is the current page. Changes to Twenty Ten through Twenty Twenty add `aria-current` and `rel="home"` where appropriate, Twenty Twenty One only adds `rel="home"`. Props bschneidewind, joedolson, hiabhaykulkarni, sabernhardt. Fixes #62895. Built from https://develop.svn.wordpress.org/trunk@59907 git-svn-id: http://core.svn.wordpress.org/trunk@59249 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/header.php | 5 +++-- wp-content/themes/twentyfifteen/header.php | 6 +++--- wp-content/themes/twentyfourteen/header.php | 5 +++-- .../template-parts/header/site-branding.php | 5 +++-- .../template-parts/header/site-branding.php | 5 +++-- wp-content/themes/twentysixteen/header.php | 8 ++++---- wp-content/themes/twentyten/header.php | 3 ++- wp-content/themes/twentythirteen/header.php | 3 ++- wp-content/themes/twentytwelve/header.php | 5 +++-- wp-content/themes/twentytwenty/inc/template-tags.php | 11 +++++++++-- .../template-parts/header/site-branding.php | 4 ++-- wp-includes/blocks/query-total.php | 2 ++ wp-includes/version.php | 2 +- 13 files changed, 40 insertions(+), 24 deletions(-) diff --git a/wp-content/themes/twentyeleven/header.php b/wp-content/themes/twentyeleven/header.php index 867b463fcf..3ab6df9fd9 100644 --- a/wp-content/themes/twentyeleven/header.php +++ b/wp-content/themes/twentyeleven/header.php @@ -78,7 +78,8 @@ if ( is_singular() && get_option( 'thread_comments' ) ) {
-

+ +

>

@@ -97,7 +98,7 @@ if ( is_singular() && get_option( 'thread_comments' ) ) { $header_image_width = HEADER_IMAGE_WIDTH; } ?> - + > -

+

>

-

+

>

>
+ @@ -43,7 +44,7 @@