MailChimp List Subscribe Form - Version 1.5.1

Version Description

  • Bugfix for fatal error in MailChimp lib
Download this release

Release Info

Developer MailChimp
Plugin Icon wp plugin MailChimp List Subscribe Form
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

Files changed (3) hide show
  1. lib/mailchimp/mailchimp.php +3 -3
  2. mailchimp.php +2 -2
  3. readme.txt +4 -2
lib/mailchimp/mailchimp.php CHANGED
@@ -38,8 +38,8 @@ class MailChimp_API {
38
  if(is_array($request) && $request['response']['code'] == 200) {
39
  return json_decode($request['body'], true);
40
  } elseif(is_array($request) && $request['response']['code']) {
41
- $error = json_decode($request['body']);
42
- $error = new WP_Error('mailchimp-get-error', $error->detail);
43
  return $error;
44
  } else {
45
  return false;
@@ -67,7 +67,7 @@ class MailChimp_API {
67
  return new WP_Error('mc-subscribe-error', $request->get_error_message());
68
  }
69
 
70
- $body = json_decode($request['body']);
71
  return new WP_Error('mc-subscribe-error-api', $body['detail']);
72
  }
73
  }
38
  if(is_array($request) && $request['response']['code'] == 200) {
39
  return json_decode($request['body'], true);
40
  } elseif(is_array($request) && $request['response']['code']) {
41
+ $error = json_decode($request['body'], true);
42
+ $error = new WP_Error('mailchimp-get-error', $error['detail']);
43
  return $error;
44
  } else {
45
  return false;
67
  return new WP_Error('mc-subscribe-error', $request->get_error_message());
68
  }
69
 
70
+ $body = json_decode($request['body'], true);
71
  return new WP_Error('mc-subscribe-error-api', $body['detail']);
72
  }
73
  }
mailchimp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp
4
  Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
5
  Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
6
- Version: 1.5
7
  Author: MailChimp
8
  Author URI: https://mailchimp.com/
9
  */
@@ -25,7 +25,7 @@ Author URI: https://mailchimp.com/
25
  */
26
 
27
  // Version constant for easy CSS refreshes
28
- define('MCSF_VER', '1.5');
29
 
30
  // What's our permission (capability) threshold
31
  define('MCSF_CAP_THRESHOLD', 'manage_options');
3
  Plugin Name: MailChimp
4
  Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
5
  Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
6
+ Version: 1.5.1
7
  Author: MailChimp
8
  Author URI: https://mailchimp.com/
9
  */
25
  */
26
 
27
  // Version constant for easy CSS refreshes
28
+ define('MCSF_VER', '1.5.1');
29
 
30
  // What's our permission (capability) threshold
31
  define('MCSF_CAP_THRESHOLD', 'manage_options');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: MailChimp
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.8
5
  Tested up to: 4.5
6
- Stable tag: 1.5
7
 
8
  == Description ==
9
 
@@ -83,7 +83,6 @@ If your language is not listed above, feel free to create a translation. Here ar
83
  6. Add the appropriately named files to the /po/ directory and edit the /readme.txt to include how you'd like to be attributed
84
  7. Make a [pull request](http://help.github.com/send-pull-requests/)
85
 
86
-
87
  == Screenshots ==
88
 
89
  1. Entering your MailChimp login info
@@ -128,6 +127,9 @@ Added support for multiple interest groups, field formatting based on type and d
128
 
129
  == Changelog ==
130
 
 
 
 
131
  = 1.5 =
132
  * Upgrade to MailChimp API v3.0
133
  * Remove OAuth2 middle layer and use MailChimp API keys
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.8
5
  Tested up to: 4.5
6
+ Stable tag: 1.5.1
7
 
8
  == Description ==
9
 
83
  6. Add the appropriately named files to the /po/ directory and edit the /readme.txt to include how you'd like to be attributed
84
  7. Make a [pull request](http://help.github.com/send-pull-requests/)
85
 
 
86
  == Screenshots ==
87
 
88
  1. Entering your MailChimp login info
127
 
128
  == Changelog ==
129
 
130
+ = 1.5.1 =
131
+ * Bugfix for fatal error in MailChimp lib
132
+
133
  = 1.5 =
134
  * Upgrade to MailChimp API v3.0
135
  * Remove OAuth2 middle layer and use MailChimp API keys