Skip to content

Commit

Permalink
switching logic for strict eval
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspercroome committed Apr 17, 2024
1 parent 85e1061 commit e253564
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client-mu-plugins/goodbids/src/classes/Auctions/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ private function schedule_auction_ending_soon_check(): void {
add_action(
'init',
function (): void {
if (wp_next_scheduled(Auctions::CRON_AUCTION_ENDING_SOON_CHECK_HOOK)){
return;
if (false === wp_next_scheduled(Auctions::CRON_AUCTION_ENDING_SOON_CHECK_HOOK)){
// Event is not scheduled, so schedule it.
wp_schedule_event(
strtotime( current_time( 'mysql') ),
$this->cron_intervals['1hr']['name'],
Auctions::CRON_AUCTION_ENDING_SOON_CHECK_HOOK
);
}
wp_schedule_event(
strtotime( current_time( 'mysql') ),
$this->cron_intervals['1hr']['name'],
Auctions::CRON_AUCTION_ENDING_SOON_CHECK_HOOK
);
}
);
}
Expand Down

0 comments on commit e253564

Please sign in to comment.