From 4e6b78d97d6986969707e055acbc096e058cfcad Mon Sep 17 00:00:00 2001 From: joedolson Date: Wed, 25 Feb 2026 20:23:45 +0000 Subject: [PATCH] Administration: Remove `aria-label` on post titles. The `aria-label` on post titles in list tables changes the accessible name from `{post_title}` to `"{post_title}" (Edit)`. This change increases verbosity for screen readers and creates a mismatch between the visual text and the accessible name for voice command. Remove the extraneous `aria-label`. Props afercia, rianrietveld, iworks, muddassirnasim, joedolson. Fixes #33002. Built from https://develop.svn.wordpress.org/trunk@61738 git-svn-id: http://core.svn.wordpress.org/trunk@61044 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-media-list-table.php | 4 +--- wp-admin/includes/class-wp-posts-list-table.php | 4 +--- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 2c1e146341..4a257804ff 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -490,10 +490,8 @@ class WP_Media_List_Table extends WP_List_Table { if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) { $link_start = sprintf( - '', + '', get_edit_post_link( $post->ID ), - /* translators: %s: Attachment title. */ - esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ) ); $link_end = ''; } diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index f5cf70902a..f9c08ad5c7 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -1138,10 +1138,8 @@ class WP_Posts_List_Table extends WP_List_Table { if ( $can_edit_post && 'trash' !== $post->post_status ) { printf( - '%s%s', + '%s%s', get_edit_post_link( $post->ID ), - /* translators: %s: Post title. */ - esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ), $pad, $title ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2fff1ca149..abed27a1b8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-beta1-61737'; +$wp_version = '7.0-beta1-61738'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.