mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 05:03:33 +09:00
- deprecated: UM()->user()->password_reset_key variable;
- fixed: #1083, #991
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user