Ticket #9442: 9442-better.diff
File 9442-better.diff, 1.2 KB (added by , 15 years ago) |
---|
-
Users/denis/Sites/sem-pro/wp-includes/user.php
86 86 $userdata = get_userdatabylogin($username); 87 87 88 88 if ( !$userdata || ($userdata->user_login != $username) ) { 89 return new WP_Error('invalid_username', __('<strong>ERROR</strong>: Invalid username.'));89 return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login'))); 90 90 } 91 91 92 92 $userdata = apply_filters('wp_authenticate_user', $userdata, $password); … … 95 95 } 96 96 97 97 if ( !wp_check_password($password, $userdata->user_pass, $userdata->ID) ) { 98 return new WP_Error('incorrect_password', __('<strong>ERROR</strong>: Incorrect password.'));98 return new WP_Error('incorrect_password', sprintf(__('<strong>ERROR</strong>: Incorrect password. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login'))); 99 99 } 100 100 101 101 $user = new WP_User($userdata->ID);