From ee4a84672603f76994bb229d09d4048f56b517bc Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 23 Aug 2005 07:51:14 +0000 Subject: [PATCH] Optimization from Skippy, fixes #1393 git-svn-id: http://svn.automattic.com/wordpress/trunk@2806 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable-functions.php b/wp-includes/pluggable-functions.php index c6cb5cc53..63fe56f47 100644 --- a/wp-includes/pluggable-functions.php +++ b/wp-includes/pluggable-functions.php @@ -135,7 +135,7 @@ function wp_login($username, $password, $already_md5 = false) { } else { // If the password is already_md5, it has been double hashed. // 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; } else { $error = __('Error: Incorrect password.');