mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Accessibility: Add "(opens in a new window)" screen reader text to the "News-Nearby Events" dashboard widget footer links.
- standardizes similar messages in core to always use `(opens in a new window)` - adds translators comments - hides the dashicons with `aria-hidden="true"`, see #40428 Fixes #40733. git-svn-id: https://develop.svn.wordpress.org/trunk@40643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -58,7 +58,7 @@ if ( 'publish' == $post->post_status ) {
|
||||
$preview_button = sprintf( '%1$s<span class="screen-reader-text"> %2$s</span>',
|
||||
$preview_button_text,
|
||||
/* translators: accessibility text */
|
||||
__( '(link opens in a new window)' )
|
||||
__( '(opens in a new window)' )
|
||||
);
|
||||
?>
|
||||
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview-<?php echo (int) $post->ID; ?>" id="post-preview"><?php echo $preview_button; ?></a>
|
||||
|
||||
Reference in New Issue
Block a user