From 19539b0aab327cfd83575f43a4ec18390e653427 Mon Sep 17 00:00:00 2001 From: Mehraz Morshed Date: Tue, 30 Dec 2025 18:35:58 +0600 Subject: [PATCH] Accessibility: Fix invalid role="presentation" usage on login page Removes role="presentation" from the

element on the login page where it contained semantically meaningful child elements (a link). According to W3C ARIA specification, role="presentation" should not be applied to semantic containers that hold semantically meaningful children. Fixes an accessibility violation (WCAG 1.3.1) where screen readers could improperly announce the heading structure. The role is moved to a wrapper
while preserving the visual appearance and maintaining proper heading semantics. Files changed: wp-login.php Core Trac Ticket: https://core.trac.wordpress.org/ticket/64460 --- src/wp-login.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-login.php b/src/wp-login.php index c9db31826bbdb..e0d227ec5873a 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -219,7 +219,11 @@ function login_header( $title = null, $message = '', $wp_error = null ) { endif; ?>
-

+