Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef1a6f5 + a3d10a9 commit 5ef2ddcCopy full SHA for 5ef2ddc
1 file changed
lib/mailchimp/mailchimp.php
@@ -128,6 +128,7 @@ public function get( $endpoint, $count = 10, $fields = array() ) {
128
// Check if Access Token is invalid/revoked.
129
if ( in_array( $request['response']['code'], array( 401, 403 ), true ) ) {
130
update_option( 'mailchimp_sf_auth_error', true );
131
+ return new WP_Error( 'mailchimp-auth-error', esc_html__( 'Authentication failed.', 'mailchimp' ) );
132
}
133
134
$error = json_decode( $request['body'], true );
0 commit comments