Skip to content

Commit

Permalink
Merge pull request #508 from MinnPost/504-temporary-fix
Browse files Browse the repository at this point in the history
Temporary bug fix while waiting for the Action Scheduler library to update. Thanks to @phillamb168 for the report.
  • Loading branch information
jonathanstegall authored Nov 28, 2022
2 parents d94fb41 + de67540 commit ac407d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function recurring( $hook, $args = array(), $first = null, $interval = nu
*/
public function recurring_unique( $hook, $args = array(), $first = null, $interval = null, $group = '', $unique = true ) {
if ( empty( $interval ) ) {
return $this->single_unique( $hook, $unique, $args, $first, $group );
return $this->single_unique( $hook, $args, $first, $group, $unique );
}
$date = as_get_datetime_object( $first );
$schedule = new ActionScheduler_IntervalSchedule( $date, $interval );
Expand Down Expand Up @@ -188,7 +188,7 @@ public function cron( $hook, $args = array(), $base_timestamp = null, $schedule
**/
public function cron_unique( $hook, $args = array(), $base_timestamp = null, $schedule = null, $group = '', $unique = true ) {
if ( empty( $schedule ) ) {
return $this->single_unique( $hook, $unique, $args, $base_timestamp, $group );
return $this->single_unique( $hook, $args, $base_timestamp, $group, $unique );
}
$date = as_get_datetime_object( $base_timestamp );
$cron = CronExpression::factory( $schedule );
Expand Down

0 comments on commit ac407d8

Please sign in to comment.