Docs: Add missing $user_data
parameter name to lostpassword_post
and lostpassword_errors
filter DocBlocks.
Follow-up to [48084]. See #49521, #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48085 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f31a966c9f
commit
901d9c69f9
@ -376,9 +376,9 @@ function retrieve_password() {
|
||||
* @since 4.4.0 Added the `$errors` parameter.
|
||||
* @since 5.4.0 Added the `$user_data` parameter.
|
||||
*
|
||||
* @param WP_Error $errors A WP_Error object containing any errors generated
|
||||
* by using invalid credentials.
|
||||
* @param WP_User|false WP_User object if found, false if the user does not exist.
|
||||
* @param WP_Error $errors A WP_Error object containing any errors generated
|
||||
* by using invalid credentials.
|
||||
* @param WP_User|false $user_data WP_User object if found, false if the user does not exist.
|
||||
*/
|
||||
do_action( 'lostpassword_post', $errors, $user_data );
|
||||
|
||||
@ -393,9 +393,9 @@ function retrieve_password() {
|
||||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @param WP_Error $errors A WP_Error object containing any errors generated
|
||||
* by using invalid credentials.
|
||||
* @param WP_User|false WP_User object if found, false if the user does not exist.
|
||||
* @param WP_Error $errors A WP_Error object containing any errors generated
|
||||
* by using invalid credentials.
|
||||
* @param WP_User|false $user_data WP_User object if found, false if the user does not exist.
|
||||
*/
|
||||
$errors = apply_filters( 'lostpassword_errors', $errors, $user_data );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user