diff --git a/wp-login.php b/wp-login.php index 4d853c18d2..f066a5d35f 100644 --- a/wp-login.php +++ b/wp-login.php @@ -77,12 +77,12 @@ case 'login': $pwd = md5($pwd); $password = &$pwd; if (!$user_login) { - $error = 'Error: the login field is empty.'; + $error = __('Error: the login field is empty.'); return false; } if (!$password) { - $error = 'Error: the password field is empty.'; + $error = __('Error: the password field is empty.'); return false; } @@ -91,7 +91,7 @@ case 'login': $login = $wpdb->get_row($query); if (!$login) { - $error = 'Error: wrong login or password.'; + $error = __('Error: wrong login or password.'); $pwd = ''; return false; } else { @@ -99,7 +99,7 @@ case 'login': if (($pass_is_md5 == 0 && $login->user_login == $user_login && $login->user_pass == $password) || ($pass_is_md5 == 1 && $login->user_login == $user_login && $login->user_pass == md5($password))) { return true; } else { - $error = 'Error: wrong login or password.'; + $error = __('Error: wrong login or password.'); $pwd = ''; return false; } @@ -161,7 +161,7 @@ case 'lostpassword':
-