Skip to content

Commit

Permalink
* updated single compare status to using has_status function;
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitasinelnikov committed Oct 11, 2024
1 parent 65dcf18 commit f1fec51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/um-cronjob-activation-email/src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public function resend_activation_notify() {
$users = get_users( $args );

foreach ( $users as $user_id ) {
$status = UM()->common()->users()->get_status( $user_id );
if ( 'awaiting_email_confirmation' === $status ) {
if ( UM()->common()->users()->has_status( $user_id, 'awaiting_email_confirmation' ) ) {
UM()->common()->users()->send_activation( $user_id, true );
}
}
Expand Down

0 comments on commit f1fec51

Please sign in to comment.