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. Built from https://develop.svn.wordpress.org/trunk@40643 git-svn-id: http://core.svn.wordpress.org/trunk@40504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1125,22 +1125,40 @@ function wp_dashboard_events_news() {
|
||||
</div>
|
||||
|
||||
<p class="community-events-footer">
|
||||
<a href="https://make.wordpress.org/community/meetups-landing-page" target="_blank">
|
||||
<?php _e( 'Meetups' ); ?> <span class="dashicons dashicons-external"></span>
|
||||
</a>
|
||||
<?php
|
||||
printf(
|
||||
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
||||
'https://make.wordpress.org/community/meetups-landing-page',
|
||||
__( 'Meetups' ),
|
||||
/* translators: accessibility text */
|
||||
__( '(opens in a new window)' )
|
||||
);
|
||||
?>
|
||||
|
||||
|
|
||||
|
||||
<a href="https://central.wordcamp.org/schedule/" target="_blank">
|
||||
<?php _e( 'WordCamps' ); ?> <span class="dashicons dashicons-external"></span>
|
||||
</a>
|
||||
<?php
|
||||
printf(
|
||||
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
||||
'https://central.wordcamp.org/schedule/',
|
||||
__( 'WordCamps' ),
|
||||
/* translators: accessibility text */
|
||||
__( '(opens in a new window)' )
|
||||
);
|
||||
?>
|
||||
|
||||
|
|
||||
|
||||
<?php // translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. ?>
|
||||
<a href="<?php _e( 'https://wordpress.org/news/' ); ?>" target="_blank">
|
||||
<?php _e( 'News' ); ?> <span class="dashicons dashicons-external"></span>
|
||||
</a>
|
||||
<?php
|
||||
printf(
|
||||
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
||||
/* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
|
||||
esc_url( __( 'https://wordpress.org/news/' ) ),
|
||||
__( 'News' ),
|
||||
/* translators: accessibility text */
|
||||
__( '(opens in a new window)' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user