mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Not check email on admin creation of users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a77e7172dc
commit
0b14400644
@ -51,13 +51,6 @@ case 'adduser':
|
||||
}
|
||||
$user_nickname = $user_login;
|
||||
|
||||
/* checking e-mail address */
|
||||
if ($user_email == '') {
|
||||
die (__('<strong>ERROR</strong>: Please type your e-mail address.'));
|
||||
} else if (!is_email($user_email)) {
|
||||
die (__('<strong>ERROR</strong>: The email address isn’t correct.'));
|
||||
}
|
||||
|
||||
/* checking the login isn't already used by another user */
|
||||
$loginthere = $wpdb->get_var("SELECT user_login FROM $tableusers WHERE user_login = '$user_login'");
|
||||
if ($loginthere) {
|
||||
@ -304,8 +297,8 @@ echo "\n<tr $style>
|
||||
<input name="pass2" type="password" id="pass2" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
<input name="adduser" type="submit" id="adduser" value="<?php _e('Add User') ?>">
|
||||
<p class="submit">
|
||||
<input name="adduser" type="submit" id="adduser" value="<?php _e('Add User') ?> »">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user