mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Provide proper label associations and descriptions throughout the network admin
* Add labels previously missing for many inputs throughout the network admin screen. * Add proper `aria-describedby` attributes to provide better descriptions. * Wrap grouped inputs with `fieldset` elements. * Remove now unneeded `title` attributes when appropriate. Props cfoellmann, afercia, rianrietveld. Fixes #38406. git-svn-id: https://develop.svn.wordpress.org/trunk@31517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -385,7 +385,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
$edit .= $this->row_actions( $actions );
|
||||
|
||||
// Set up the checkbox ( because the user is editable, otherwise it's empty )
|
||||
$checkbox = '<label class="screen-reader-text" for="cb-select-' . $user_object->ID . '">' . sprintf( __( 'Select %s' ), $user_object->user_login ) . '</label>'
|
||||
$checkbox = '<label class="screen-reader-text" for="user_' . $user_object->ID . '">' . sprintf( __( 'Select %s' ), $user_object->user_login ) . '</label>'
|
||||
. "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />";
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user