From de6754021f5e7e9f28b1e1ac943f9979034b30ca Mon Sep 17 00:00:00 2001 From: Jonathan Stegall Date: Mon, 28 Nov 2022 08:00:50 -0600 Subject: [PATCH] temporary fix while waiting for action scheduler update --- .../classes/ActionScheduler_ActionFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php b/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php index 52fa6583..5c91216e 100644 --- a/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php +++ b/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php @@ -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 ); @@ -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 );