Changeset 37474 for trunk/src/wp-login.php
- Timestamp:
- 05/20/2016 07:20:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r37243 r37474 295 295 $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.')); 296 296 } elseif ( strpos( $_POST['user_login'], '@' ) ) { 297 $user_data = get_user_by( 'email', trim( $_POST['user_login']) );297 $user_data = get_user_by( 'email', trim( wp_unslash( $_POST['user_login'] ) ) ); 298 298 if ( empty( $user_data ) ) 299 299 $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.'));
Note: See TracChangeset
for help on using the changeset viewer.