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:
Claudio Sanches 2020-12-07 19:20:02 -03:00 committed by GitHub
commit 1c65696535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) );
}