WordPress.org

Make WordPress Core

Ticket #30789: wp_login_failed.diff

File wp_login_failed.diff, 457 bytes (added by mattkeys, 6 years ago)

Adding the authentication errors object

  • wp-includes/pluggable.php

     
    570570                 * @since 2.5.0
    571571                 *
    572572                 * @param string $username User login.
     573                 * @param object $user authentication errors.
    573574                 */
    574                 do_action( 'wp_login_failed', $username );
     575                do_action( 'wp_login_failed', $username, $user );
    575576        }
    576577
    577578        return $user;