From 8b2770b12ea207129d91ffbdc30be6b9f4443c9d Mon Sep 17 00:00:00 2001 From: Nikita Sinelnikov Date: Tue, 13 Dec 2022 23:16:33 +0200 Subject: [PATCH] - deprecated: UM()->user()->password_reset_key variable; - fixed: #1083, #991 --- includes/core/class-user.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/core/class-user.php b/includes/core/class-user.php index a5c01eb9..a3fc5f7f 100644 --- a/includes/core/class-user.php +++ b/includes/core/class-user.php @@ -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 ); }