Merge pull request #27850 from matt-h/webhook-schedule-when-processing
Make next webhook not return a date when the webhook is already running.
This commit is contained in:
commit
1c65696535
|
@ -126,7 +126,7 @@ class WC_Action_Queue implements WC_Queue_Interface {
|
|||
|
||||
$next_timestamp = as_next_scheduled_action( $hook, $args, $group );
|
||||
|
||||
if ( $next_timestamp ) {
|
||||
if ( is_numeric( $next_timestamp ) ) {
|
||||
return new WC_DateTime( "@{$next_timestamp}", new DateTimeZone( 'UTC' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue