Make WordPress Core


Ignore:
Timestamp:
07/28/2018 01:01:30 PM (8 years ago)
Author:
johnbillion
Message:

Login and Registration: Pass the $errors parameter to the lost_password action.

Props sebakurzyn

Fixes #44512

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r43457 r43542  
    589589                 *
    590590                 * @since 1.5.1
     591                 * @since 5.0.0 Added the `$errors` parameter.
     592                 *
     593                 * @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid
     594                 *                         credentials. Note that the error object may not contain any errors.
    591595                 */
    592                 do_action( 'lost_password' );
     596                do_action( 'lost_password', $errors );
    593597
    594598                login_header( __( 'Lost Password' ), '<p class="message">' . __( 'Please enter your username or email address. You will receive a link to create a new password via email.' ) . '</p>', $errors );
Note: See TracChangeset for help on using the changeset viewer.