From 73addbbd242613bff1a414f3f3ee17f19c0e9f6f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 25 Jul 2012 16:18:14 +0000 Subject: [PATCH] More screen reader text for list table checkboxes and theme install search. Props MikeLittle, SergeyBiryukov. see #21325 git-svn-id: http://core.svn.wordpress.org/trunk@21323 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../includes/class-wp-comments-list-table.php | 7 ++++--- .../includes/class-wp-links-list-table.php | 9 ++++++--- wp-admin/includes/class-wp-list-table.php | 4 ++-- .../includes/class-wp-media-list-table.php | 2 +- .../includes/class-wp-ms-sites-list-table.php | 1 + .../includes/class-wp-ms-users-list-table.php | 1 + .../includes/class-wp-plugins-list-table.php | 7 ++++++- .../includes/class-wp-posts-list-table.php | 10 ++++++---- .../includes/class-wp-terms-list-table.php | 4 ++-- .../includes/class-wp-users-list-table.php | 4 ++-- wp-admin/includes/theme-install.php | 18 +++++++++++++++--- 11 files changed, 46 insertions(+), 21 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 83075c3264..1b194113be 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -317,9 +317,10 @@ class WP_Comments_List_Table extends WP_List_Table { } function column_cb( $comment ) { - if ( $this->user_can ) { - echo '"; + if ( $this->user_can ) { ?> + + + '; + case 'cb': ?> + + + + + ' . __( 'Select All' ) - . ''; + $columns['cb'] = '' + . ''; $cb_counter++; } diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 3cd4fb1f47..29a272b521 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -191,7 +191,7 @@ foreach ( $columns as $column_name => $column_display_name ) { ?> - + diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php index 3d72381c7d..d0b36a2cc6 100644 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -213,6 +213,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { switch ( $column_name ) { case 'cb': ?> + + "; + if ( in_array( $status, array( 'mustuse', 'dropins' ) ) ) { + $checkbox = ''; + } else { + $checkbox = "" + . ""; + } if ( 'dropins' != $context ) { $description = '

' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '

'; $plugin_name = $plugin_data['Name']; diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 18a7fb5f00..9d509bb794 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -492,10 +492,12 @@ class WP_Posts_List_Table extends WP_List_Table { case 'cb': ?> - - - + + + + + + cap->delete_terms ) && $tag->term_id != $default_term ) - return ''; + return '' + . ''; return ' '; } diff --git a/wp-admin/includes/class-wp-users-list-table.php b/wp-admin/includes/class-wp-users-list-table.php index 61bcd6bc65..35eb35cfd5 100644 --- a/wp-admin/includes/class-wp-users-list-table.php +++ b/wp-admin/includes/class-wp-users-list-table.php @@ -256,8 +256,8 @@ class WP_Users_List_Table extends WP_List_Table { $edit .= $this->row_actions( $actions ); // Set up the checkbox ( because the user is editable, otherwise its empty ) - $checkbox = '"; + $checkbox = '' + . ""; } else { $edit = '' . $user_object->user_login . ''; diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 880c67e6df..ff0ce01d92 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -58,15 +58,27 @@ function install_theme_search_form( $type_selector = true ) {
- + - + - +