mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00: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:
@@ -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' )
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user