Optimization from Skippy, fixes #1393
git-svn-id: https://develop.svn.wordpress.org/trunk@2806 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dde5ccd8ef
commit
cfed5d658f
|
@ -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 = __('<strong>Error</strong>: Incorrect password.');
|
||||
|
|
Loading…
Reference in New Issue