Networks and Sites: Fix the attributes for the email input field on the new network user screen.

This reverts the email input field back to its previous state (before [55026]), except for the expected addition of the `required` attribute.

Follow-up to [55026].

Props johnbillion.
Fixes #38460.


git-svn-id: https://develop.svn.wordpress.org/trunk@55394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2023-02-21 14:50:49 +00:00
parent 64d6d5d479
commit 910a76f5c2

View File

@@ -132,7 +132,7 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
</tr>
<tr class="form-field form-required">
<th scope="row"><label for="email"><?php _e( 'Email' ); ?> <?php echo wp_required_field_indicator(); ?></label></th>
<td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" required="required" /></td>
<td><input type="email" class="regular-text" name="user[email]" id="email" required="required" /></td>
</tr>
<tr class="form-field">
<td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>