WordPress.org

Make WordPress Core

Ticket #38334: 38334.diff

File 38334.diff, 488 bytes (added by lukecavanagh, 5 years ago)

Basic patch.

  • src/wp-login.php

     
    310310         * @param WP_Error $errors A WP_Error object containing any errors generated
    311311         *                         by using invalid credentials.
    312312         */
    313         do_action( 'lostpassword_post', $errors );
     313        do_action( 'lostpassword_post', $errors, $user_data );
    314314
    315315        if ( $errors->get_error_code() )
    316316                return $errors;