mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 22:10:02 +01:00
Accessibility: Administration: Improve aria-label
on network admin Themes screen.
This ensures that the beginning of the label matches the visible link text. Add a similar label for the plugin URI link on the Plugins screen when the plugin is outside of the directory. Follow-up to [28673], [28706], [35924]. Props sabernhardt, zeo, audrasjb. Fixes #24442. git-svn-id: https://develop.svn.wordpress.org/trunk@51795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
088f3043a4
commit
ce168ea06b
@ -721,7 +721,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
|
||||
if ( $theme->get( 'ThemeURI' ) ) {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( __( 'Visit %s homepage' ), $theme->display( 'Name' ) );
|
||||
$aria_label = sprintf( __( 'Visit theme site for %s' ), $theme->display( 'Name' ) );
|
||||
|
||||
$theme_meta[] = sprintf(
|
||||
'<a href="%s" aria-label="%s">%s</a>',
|
||||
|
@ -1066,9 +1066,13 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
__( 'View details' )
|
||||
);
|
||||
} elseif ( ! empty( $plugin_data['PluginURI'] ) ) {
|
||||
/* translators: %s: Plugin name. */
|
||||
$aria_label = sprintf( __( 'Visit plugin site for %s' ), $plugin_name );
|
||||
|
||||
$plugin_meta[] = sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
'<a href="%s" aria-label="%s">%s</a>',
|
||||
esc_url( $plugin_data['PluginURI'] ),
|
||||
esc_attr( $aria_label ),
|
||||
__( 'Visit plugin site' )
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user