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

Props sebakurzyn

Fixes #44512


git-svn-id: https://develop.svn.wordpress.org/trunk@43542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2018-07-28 13:01:30 +00:00
parent a3dcfa9f91
commit ae69878202
1 changed files with 5 additions and 1 deletions

View File

@ -588,8 +588,12 @@ switch ( $action ) {
* Fires before the lost password form.
*
* @since 1.5.1
* @since 5.0.0 Added the `$errors` parameter.
*
* @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid
* credentials. Note that the error object may not contain any errors.
*/
do_action( 'lost_password' );
do_action( 'lost_password', $errors );
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 );