Apply accessibility improvements to Plugins screen too.
props SergeyBiryukov. fixes #29342. git-svn-id: https://develop.svn.wordpress.org/trunk@29583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
35ae0bc5a4
commit
e4717c19c1
|
@ -522,10 +522,13 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) ) {
|
||||
// Details link using API info, if available
|
||||
if ( isset( $plugin_data['slug'] ) ) {
|
||||
$plugin_meta[] = sprintf( '<a href="%s" class="thickbox">%s</a>',
|
||||
$plugin_meta[] = sprintf( '<a href="%s" class="thickbox" aria-label="%s" data-title="%s">%s</a>',
|
||||
esc_url( self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data['slug'] .
|
||||
'&TB_iframe=true&width=600&height=550' ) ),
|
||||
__( 'View details' ) );
|
||||
esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ),
|
||||
esc_attr( $plugin_name ),
|
||||
__( 'View details' )
|
||||
);
|
||||
} elseif ( ! empty( $plugin_data['PluginURI'] ) ) {
|
||||
$plugin_meta[] = sprintf( '<a href="%s">%s</a>',
|
||||
esc_url( $plugin_data['PluginURI'] ),
|
||||
|
|
|
@ -38,7 +38,7 @@ jQuery( document ).ready( function( $ ) {
|
|||
tb_position();
|
||||
});
|
||||
|
||||
$('.plugin-card').on( 'click', 'a.thickbox', function() {
|
||||
$( '.plugin-card, .plugins .column-description' ).on( 'click', 'a.thickbox', function() {
|
||||
tb_click.call(this);
|
||||
|
||||
$('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
|
||||
|
|
Loading…
Reference in New Issue