diff --git src/wp-login.php src/wp-login.php
index ed3878c..7832e2e 100644
|
|
|
function retrieve_password() { |
| 286 | 286 | if ( empty( $_POST['user_login'] ) ) { |
| 287 | 287 | $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.')); |
| 288 | 288 | } elseif ( strpos( $_POST['user_login'], '@' ) ) { |
| 289 | | $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) ); |
| | 289 | $user_data = get_user_by( 'email', trim( wp_unslash( $_POST['user_login'] ) ) ); |
| 290 | 290 | if ( empty( $user_data ) ) |
| 291 | 291 | $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.')); |
| 292 | 292 | } else { |