Make WordPress Core

Changeset 32774


Ignore:
Timestamp:
06/14/2015 08:40:35 PM (9 years ago)
Author:
helen
Message:

Multisite: Use an email input for new user email address.

We also need to set novalidate on the form due to some browsers rejecting valid email addresses containing an IDN. We should holistically investigate whether this is still an issue in any major browsers at some point.

props earnjam.
fixes #32643.

File:
1 edited

Legend:

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

    r32152 r32774  
    8686    </div>
    8787<?php } ?>
    88     <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post">
     88    <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post" novalidate="novalidate">
    8989    <table class="form-table">
    9090        <tr class="form-field form-required">
     
    9494        <tr class="form-field form-required">
    9595            <th scope="row"><label for="email"><?php _e( 'Email' ) ?></label></th>
    96             <td><input type="text" class="regular-text" name="user[email]" id="email"/></td>
     96            <td><input type="email" class="regular-text" name="user[email]" id="email"/></td>
    9797        </tr>
    9898        <tr class="form-field">
Note: See TracChangeset for help on using the changeset viewer.