This commit is contained in:
Mykyta Synelnikov
2023-11-29 19:18:38 +02:00
parent edf0ed3085
commit 6d0f9494f3
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ if ( ! class_exists( 'um\common\Secure' ) ) {
),
array(
'key' => 'um_user_blocked__timestamp',
'value' => gmdate( 'Y-m-d H:i:s', strtotime( 'now' ) ),
'value' => gmdate( 'Y-m-d H:i:s' ),
'compare' => '<=',
'type' => 'DATE',
),
@@ -235,7 +235,7 @@ if ( ! class_exists( 'um\common\Secure' ) ) {
}
um_reset_user();
update_user_meta( $user->ID, 'um_user_blocked', 'suspicious_activity' );
update_user_meta( $user->ID, 'um_user_blocked__timestamp', current_datetime()->format( 'U' ) );
update_user_meta( $user->ID, 'um_user_blocked__timestamp', current_time( 'mysql', true ) );
UM()->user()->remove_cache( $user->ID );
}