Optimization from Skippy, fixes #1393

git-svn-id: http://svn.automattic.com/wordpress/trunk@2806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-23 07:51:14 +00:00
parent 317499b911
commit ee4a846726
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ function wp_login($username, $password, $already_md5 = false) {
} else { } else {
// If the password is already_md5, it has been double hashed. // If the password is already_md5, it has been double hashed.
// Otherwise, it is plain text. // Otherwise, it is plain text.
if ( ($already_md5 && $login->user_login == $username && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) { if ( ($already_md5 && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) {
return true; return true;
} else { } else {
$error = __('<strong>Error</strong>: Incorrect password.'); $error = __('<strong>Error</strong>: Incorrect password.');