WordPress.org

Make WordPress Core

Ticket #1393: pluggable-functions.php.diff

File pluggable-functions.php.diff, 732 bytes (added by markjaquith, 9 years ago)

patch for 1.6 SVN

  • pluggable-functions.php

     
    9797        } else { 
    9898                // If the password is already_md5, it has been double hashed. 
    9999                // Otherwise, it is plain text. 
    100                 if ( ($already_md5 && $login->user_login == $username && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) { 
     100                if ( ($already_md5 && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) { 
    101101                        return true; 
    102102                } else { 
    103103                        $error = __('<strong>Error</strong>: Incorrect password.');