mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge pull request #1340 from ultimatemember/fix/secure-scanner
Fix date and time to filter suspicious accounts + minor fixes to the timestamp in GMT
This commit is contained in:
@@ -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_time( 'mysql' ) );
|
||||
update_user_meta( $user->ID, 'um_user_blocked__timestamp', current_datetime()->format( 'U' ) );
|
||||
UM()->user()->remove_cache( $user->ID );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user