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
This commit is contained in:
joedolson
2026-02-25 20:23:45 +00:00
parent 5a6cdcbc07
commit 4e6b78d97d
3 changed files with 3 additions and 7 deletions

View File

@@ -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(
'<a href="%s" aria-label="%s">',
'<a href="%s">',
get_edit_post_link( $post->ID ),
/* translators: %s: Attachment title. */
esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) )
);
$link_end = '</a>';
}

View File

@@ -1138,10 +1138,8 @@ class WP_Posts_List_Table extends WP_List_Table {
if ( $can_edit_post && 'trash' !== $post->post_status ) {
printf(
'<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
'<a class="row-title" href="%s">%s%s</a>',
get_edit_post_link( $post->ID ),
/* translators: %s: Post title. */
esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
$pad,
$title
);

View File

@@ -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.