Make WordPress Core


Ignore:
Timestamp:
02/07/2026 11:52:30 PM (9 months ago)
Author:
joedolson
Message:

Media: Add external icon to alt text links.

This link opens in a new tab, and needs a visual indicator to provide an affordance to sighted users that this will happen.

Props burtrw, sabernhardt, audrasjb, westonruter, joedolson.
Fixes #64374.

File:
1 edited

Legend:

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

    r61594 r61597  
    32463246                        'target="_blank"',
    32473247                        sprintf(
    3248                                 '<span class="screen-reader-text"> %s</span>',
     3248                                '<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
    32493249                                /* translators: Hidden accessibility text. */
    32503250                                __( '(opens in a new tab)' )
Note: See TracChangeset for help on using the changeset viewer.