From 70330165c421834c6739d3c843edd66263089104 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 11 Dec 2015 16:32:26 +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. Built from https://develop.svn.wordpress.org/trunk@35866 git-svn-id: http://core.svn.wordpress.org/trunk@35830 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index e4fd79617b..3442250e28 100644 --- a/wp-admin/update-core.php +++ b/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 " diff --git a/wp-includes/version.php b/wp-includes/version.php index e810b14685..7844b88c02 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35865'; +$wp_version = '4.5-alpha-35866'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.