Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:mailchimp/wordpress into enhance…
Browse files Browse the repository at this point in the history
…ment/46
  • Loading branch information
iamdharmesh committed Aug 21, 2024
2 parents 3200f54 + 5ef2ddc commit 316b214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mailchimp/mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public function get( $endpoint, $count = 10, $fields = array() ) {
// Check if Access Token is invalid/revoked.
if ( in_array( $request['response']['code'], array( 401, 403 ), true ) ) {
update_option( 'mailchimp_sf_auth_error', true );
return new WP_Error( 'mailchimp-auth-error', esc_html__( 'Authentication failed.', 'mailchimp' ) );
}

$error = json_decode( $request['body'], true );
Expand Down

0 comments on commit 316b214

Please sign in to comment.