From 6dac60da98515355c2073a325027780c93a419f4 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 15 Dec 2015 22:18:30 +0000 Subject: [PATCH] Accessibility: add missing labels for Plugins and Themes checkboxes in the Updates screen. Also, adds translator comments and improves readability. Props SergeyBiryukov, afercia, oaron for the initial patch. Fixes #34774. Built from https://develop.svn.wordpress.org/trunk@35952 git-svn-id: http://core.svn.wordpress.org/trunk@35916 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 58 ++++++++++++++++++++++++++++++++-------- wp-includes/version.php | 2 +- 2 files changed, 48 insertions(+), 12 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 3442250e28..c4682e81ca 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -307,12 +307,28 @@ function list_plugin_updates() { /* 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 " - - -

{$plugin_data->Name}
" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "

- "; + $checkbox_id = "checkbox_" . md5( $plugin_data->Name ); + ?> + + + + + +

Name; ?>
Version, + $plugin_data->update->new_version + ); + echo ' ' . $details . $compat . $upgrade_notice; + ?>

+ + @@ -359,11 +375,31 @@ function list_theme_updates() { $theme ) { - echo " - - - " . $theme->display('Name') . ' ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . " - "; + $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); + ?> + + + + + + + + display( 'Name' ); ?> + display( 'Version' ), + $theme->update['new_version'] + ); + ?> + + + diff --git a/wp-includes/version.php b/wp-includes/version.php index c2764150b3..65635f57ec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35951'; +$wp_version = '4.5-alpha-35952'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.