- deprecated: UM()->user()->password_reset_key variable;

- fixed: #1083, #991
This commit is contained in:
Nikita Sinelnikov
2022-12-13 23:16:33 +02:00
parent 43d2fe6a45
commit 8b2770b12e
+1 -6
View File
@@ -33,7 +33,6 @@ if ( ! class_exists( 'um\core\User' ) ) {
$this->data = null;
$this->profile = null;
$this->cannot_edit = null;
$this->password_reset_key = null;
$this->deleted_user_id = null;
global $wpdb;
@@ -1527,11 +1526,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
* @return string|\WP_Error
*/
function maybe_generate_password_reset_key( $userdata ) {
if ( empty( $this->password_reset_key ) ) {
$this->password_reset_key = get_password_reset_key( $userdata );
}
return $this->password_reset_key ;
return get_password_reset_key( $userdata );
}