Make WordPress Core


Ignore:
Timestamp:
02/25/2026 08:22:30 PM (7 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.

File:
1 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>';
Note: See TracChangeset for help on using the changeset viewer.