Changeset 18513 for trunk/wp-login.php
- Timestamp:
- 08/05/2011 04:57:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/wp-login.php
r18504 r18513 172 172 173 173 if ( strpos($_POST['user_login'], '@') ) { 174 $user_data = get_user_by _email(trim($_POST['user_login']));174 $user_data = get_user_by('email', trim($_POST['user_login'])); 175 175 if ( empty($user_data) ) 176 176 $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.')); 177 177 } else { 178 178 $login = trim($_POST['user_login']); 179 $user_data = get_user databylogin($login);179 $user_data = get_user_by('login', $login); 180 180 } 181 181 … … 545 545 if ( !empty($_POST['log']) && !force_ssl_admin() ) { 546 546 $user_name = sanitize_user($_POST['log']); 547 if ( $user = get_user databylogin($user_name) ) {547 if ( $user = get_user_by('login', $user_name) ) { 548 548 if ( get_user_option('use_ssl', $user->ID) ) { 549 549 $secure_cookie = true;
Note: See TracChangeset
for help on using the changeset viewer.