mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
6079c4c6d2
commit
fa4fed0f80
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user