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:
Mykyta Synelnikov
2023-11-28 15:00:54 +02:00
committed by GitHub
3 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -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 );
}