Merge pull request #94 from woocommerce/PCP-60-high-volume-of-failed-calls-to--v

Do not reschedule webhook registration on creation failure
This commit is contained in:
Emili Castells 2021-01-13 09:35:56 +01:00 committed by GitHub
commit 6fad09efb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,10 +83,6 @@ class WebhookRegistrar {
);
return true;
} catch ( RuntimeException $error ) {
wp_schedule_single_event(
time() - 1,
self::EVENT_HOOK
);
return false;
}
}