From d0da333cf040a2338b0d0dfceb9211e5a3d78b73 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 11 Dec 2015 16:31:06 +0000 Subject: [PATCH] Accessibility: on the Updates screen, remove a redundant title attribute. Removes the title attribute from the Plugin details link and adds the Plugin name hidden with `screen-reader-text` within the link text. Props Cheffheid. Fixes #35001. git-svn-id: https://develop.svn.wordpress.org/trunk@35866 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index e4fd79617b..3442250e28 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -303,8 +303,10 @@ function list_plugin_updates() { } $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '§ion=changelog&TB_iframe=true&width=640&height=662'); - $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version); - $details = sprintf('%3$s', esc_url($details_url), esc_attr($plugin_data->Name), $details_text); + $details_name = sprintf( '%1$s', esc_attr( $plugin_data->Name ) ); + /* translators: 1: Plugin name 2: Plugin version */ + $details_text = sprintf( __( 'View %1$s version %2$s details.' ), $details_name, $plugin_data->update->new_version ); + $details = sprintf( '%2$s', esc_url( $details_url ), $details_text ); echo "