Login and Registration: Introduce lostpassword_errors filter in retrieve_password() for errors encountered on a password reset request.
This complements the `registration_errors` filter in `register_new_user()`. Props wpdo5ea, dilipbheda. Fixes #49521. Built from https://develop.svn.wordpress.org/trunk@48084 git-svn-id: http://core.svn.wordpress.org/trunk@47851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2553,7 +2553,7 @@ function register_new_user( $user_login, $user_email ) {
|
||||
* Filters the errors encountered when a new user is being registered.
|
||||
*
|
||||
* The filtered WP_Error object may, for example, contain errors for an invalid
|
||||
* or existing username or email address. A WP_Error object should always returned,
|
||||
* or existing username or email address. A WP_Error object should always be returned,
|
||||
* but may or may not contain errors.
|
||||
*
|
||||
* If any errors are present in $errors, this will abort the user's registration.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48083';
|
||||
$wp_version = '5.5-alpha-48084';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user