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. Built from https://develop.svn.wordpress.org/trunk@31517 git-svn-id: http://core.svn.wordpress.org/trunk@31498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -87,12 +87,12 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?>
|
||||
<form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post">
|
||||
<table class="form-table">
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><?php _e( 'Username' ) ?></th>
|
||||
<td><input type="text" class="regular-text" name="user[username]" /></td>
|
||||
<th scope="row"><label for="username"><?php _e( 'Username' ) ?></label></th>
|
||||
<td><input type="text" class="regular-text" name="user[username]" id="username" /></td>
|
||||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><?php _e( 'Email' ) ?></th>
|
||||
<td><input type="text" class="regular-text" name="user[email]" /></td>
|
||||
<th scope="row"><label for="email"><?php _e( 'Email' ) ?></label></th>
|
||||
<td><input type="text" class="regular-text" name="user[email]" id="email"/></td>
|
||||
</tr>
|
||||
<tr class="form-field">
|
||||
<td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>
|
||||
|
||||
Reference in New Issue
Block a user