Make WordPress Core

Ticket #31870: 31870.diff

File 31870.diff, 1.0 KB (added by wonderboymusic, 10 years ago)
  • src/wp-includes/user-functions.php

     
    152152        if ( is_wp_error($user) )
    153153                return $user;
    154154
    155         if ( !wp_check_password($password, $user->user_pass, $user->ID) )
    156                 return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s">Lost your password?</a>' ),
    157                 $username, wp_lostpassword_url() ) );
    158 
     155        if ( !wp_check_password($password, $user->user_pass, $user->ID) ) {
     156                return new WP_Error( 'incorrect_password',
     157                        sprintf(
     158                                /* translators: 1: user name 2: lost password url */
     159                                __( '<strong>ERROR</strong>: The password you entered for the username %1$s is incorrect. <a href="%2$s">Lost your password?</a>' ),
     160                                '<strong>' . $username . '</strong>',
     161                                wp_lostpassword_url()
     162                        )
     163                );
     164        }
    159165        return $user;
    160166}
    161167