Update class-wc-webhook.php

This commit is contained in:
JD 2018-10-03 21:38:53 +01:00 committed by GitHub
parent b0b2b34884
commit 0871ad8627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ class WC_Webhook extends WC_Legacy_Webhook {
);
// Track failures.
// Check for a success, which is a 2xx, 301 or 302 Response Code
// Check for a success, which is a 2xx, 301 or 302 Response Code.
if ( intval( $response_code ) >= 200 && intval( $response_code ) < 303 ) {
$this->set_failure_count( 0 );
$this->save();