mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Users: Correctly display an error message after clicking the "Send Reset Link" button.
The `addInlineNotice()` function expects a single string as a success or error message, not an array of strings. Follow-up to [50129]. Props audrasjb. Fixes #52573. git-svn-id: https://develop.svn.wordpress.org/trunk@50390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d1c40e9a3d
commit
d77042872c
@ -5433,6 +5433,6 @@ function wp_ajax_send_password_reset() {
|
||||
sprintf( __( 'A password reset link was emailed to %s.' ), $user->display_name )
|
||||
);
|
||||
} else {
|
||||
wp_send_json_error( $results );
|
||||
wp_send_json_error( $results->get_error_message() );
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user