Return WP_USER from check_password_reset_key

Closes #7134
This commit is contained in:
Mike Jolley 2015-01-19 10:53:33 +00:00
parent 53f32416c5
commit ee8b3f22c3
1 changed files with 2 additions and 3 deletions

View File

@ -297,10 +297,9 @@ class WC_Shortcode_My_Account {
*
* @uses $wpdb WordPress Database object
*
* @access public
* @param string $key Hash to validate sending user's password
* @param string $login The user login
* @return object|bool User's database row on success, false for invalid keys
* @return WP_USER|bool User's database row on success, false for invalid keys
*/
public static function check_password_reset_key( $key, $login ) {
global $wpdb, $wp_hasher;
@ -333,7 +332,7 @@ class WC_Shortcode_My_Account {
return false;
}
return $user;
return get_userdata( $user->ID );
}
/**