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