Login: Pass the $errors object as a parameter to the lostpassword_post hook.

Props iamfriendly.
Fixes #32116.

Built from https://develop.svn.wordpress.org/trunk@34885


git-svn-id: http://core.svn.wordpress.org/trunk@34850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-10-06 23:00:25 +00:00
parent 6079c4c6d2
commit fa4fed0f80
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34884';
$wp_version = '4.4-alpha-34885';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -295,8 +295,12 @@ function retrieve_password() {
* Fires before errors are returned from a password reset request.
*
* @since 2.1.0
* @since 4.4.0 Added the `$errors` parameter.
*
* @param WP_Error $errors A WP_Error object containing any errors generated
* by using invalid credentials.
*/
do_action( 'lostpassword_post' );
do_action( 'lostpassword_post', $errors );
if ( $errors->get_error_code() )
return $errors;