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:
@@ -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( __( '“%s” (Edit)' ), $title ) )
|
||||
);
|
||||
$link_end = '</a>';
|
||||
}
|
||||
|
||||
@@ -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( __( '“%s” (Edit)' ), $title ) ),
|
||||
$pad,
|
||||
$title
|
||||
);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user