Make WordPress Core


Ignore:
Timestamp:
02/21/2023 02:50:49 PM (21 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/user-new.php

    r55026 r55394  
    133133            <tr class="form-field form-required">
    134134                <th scope="row"><label for="email"><?php _e( 'Email' ); ?> <?php echo wp_required_field_indicator(); ?></label></th>
    135                 <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" required="required" /></td>
     135                <td><input type="email" class="regular-text" name="user[email]" id="email" required="required" /></td>
    136136            </tr>
    137137            <tr class="form-field">
Note: See TracChangeset for help on using the changeset viewer.