mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Users: Check that a valid user is passed to get_password_reset_key()
.
Props edocev. Fixes #44601. Built from https://develop.svn.wordpress.org/trunk@44602 git-svn-id: http://core.svn.wordpress.org/trunk@44433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5d8a6bde3
commit
8ddef3e98d
@ -2217,6 +2217,10 @@ function wp_get_password_hint() {
|
||||
function get_password_reset_key( $user ) {
|
||||
global $wpdb, $wp_hasher;
|
||||
|
||||
if ( ! ( $user instanceof WP_User ) ) {
|
||||
return new WP_Error( 'invalidcombo', __( '<strong>ERROR</strong>: There is no account with that username or email address.' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires before a new password is retrieved.
|
||||
*
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-beta1-44601';
|
||||
$wp_version = '5.1-beta1-44602';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user