Ticket #31788: 31788.3.diff
File 31788.3.diff, 966 bytes (added by , 5 years ago) |
---|
-
wp-login.php
334 334 } elseif ( strpos( $_POST['user_login'], '@' ) ) { 335 335 $user_data = get_user_by( 'email', trim( wp_unslash( $_POST['user_login'] ) ) ); 336 336 if ( empty( $user_data ) ) { 337 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: There is no user registered with thatemail address.' ) );337 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: There are no user accounts using that username or email address.' ) ); 338 338 } 339 339 } else { 340 340 $login = trim( $_POST['user_login'] ); … … 357 357 } 358 358 359 359 if ( ! $user_data ) { 360 $errors->add( 'invalidcombo', __( '<strong>ERROR</strong>: Invalid username or email.' ) );360 $errors->add( 'invalidcombo', __( '<strong>ERROR</strong>: There are no user accounts using that username or email address.' ) ); 361 361 return $errors; 362 362 } 363 363