Changeset 2437 for trunk/wp-admin/users.php
- Timestamp:
- 03/13/2005 05:06:18 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r2425 r2437 33 33 $user_uri = wp_specialchars($_POST['uri']); 34 34 35 /* checking loginhas been typed */35 /* checking that username has been typed */ 36 36 if ($user_login == '') 37 die (__('<strong>ERROR</strong>: Please enter a login.'));37 die (__('<strong>ERROR</strong>: Please enter a username.')); 38 38 39 39 /* checking the password has been typed twice */ … … 48 48 $user_nickname = $user_login; 49 49 50 /* checking th e loginisn't already used by another user */50 /* checking that the username isn't already used by another user */ 51 51 $loginthere = $wpdb->get_var("SELECT user_login FROM $wpdb->users WHERE user_login = '$user_login'"); 52 52 if ($loginthere) 53 die (__('<strong>ERROR</strong>: This loginis already registered, please choose another one.'));53 die (__('<strong>ERROR</strong>: This username is already registered, please choose another one.')); 54 54 55 55 /* checking e-mail address */ … … 83 83 $user_login = stripslashes($user_login); 84 84 $message = 'New user registration on your blog ' . get_settings('blogname') . ":\r\n\r\n"; 85 $message .= " Login: $user_login\r\n\r\nE-mail: $user_email";85 $message .= "Username: $user_login\r\n\r\nE-mail: $user_email"; 86 86 87 87 @wp_mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message);
Note: See TracChangeset
for help on using the changeset viewer.