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.
Built from https://develop.svn.wordpress.org/trunk@50390


git-svn-id: http://core.svn.wordpress.org/trunk@50001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-02-19 17:24:05 +00:00
parent 1db4b029c3
commit 50f8dafe17
2 changed files with 2 additions and 2 deletions

View File

@ -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() );
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-beta3-50389';
$wp_version = '5.7-beta3-50390';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.