WordPress.org

Make WordPress Core

Ticket #3708: wp_login.diff

File wp_login.diff, 961 bytes (added by charleshooper, 14 years ago)

"Fix" for ticket #3708

  • wp-includes/pluggable.php

     
    182182        //$login = $wpdb->get_row("SELECT ID, user_login, user_pass FROM $wpdb->users WHERE user_login = '$username'");
    183183
    184184        if (!$login) {
    185                 $error = __('<strong>ERROR</strong>: Invalid username.');
     185                $error = __('<strong>ERROR</strong>: Invalid username / password combination.');
    186186                return false;
    187187        } else {
    188188                // If the password is already_md5, it has been double hashed.
     
    190190                if ( ($already_md5 && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) {
    191191                        return true;
    192192                } else {
    193                         $error = __('<strong>ERROR</strong>: Incorrect password.');
     193                        $error = __('<strong>ERROR</strong>: Invalid username / password combination.');
    194194                        $pwd = '';
    195195                        return false;
    196196                }