Make WordPress Core

Changeset 61738


Ignore:
Timestamp:
02/25/2026 08:22:30 PM (2 months ago)
Author:
joedolson
Message:

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.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r61683 r61738  
    491491        if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) {
    492492            $link_start = sprintf(
    493                 '<a href="%s" aria-label="%s">',
     493                '<a href="%s">',
    494494                get_edit_post_link( $post->ID ),
    495                 /* translators: %s: Attachment title. */
    496                 esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) )
    497495            );
    498496            $link_end = '</a>';
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r61651 r61738  
    11391139        if ( $can_edit_post && 'trash' !== $post->post_status ) {
    11401140            printf(
    1141                 '<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
     1141                '<a class="row-title" href="%s">%s%s</a>',
    11421142                get_edit_post_link( $post->ID ),
    1143                 /* translators: %s: Post title. */
    1144                 esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
    11451143                $pad,
    11461144                $title
Note: See TracChangeset for help on using the changeset viewer.