WooCommerce MailChimp - Version 2.0.10

Version Description

Download this release

Release Info

Developer anderly
Plugin Icon 128x128 WooCommerce MailChimp
Version 2.0.10
Comparing to
See all releases

Code changes from version 2.0.9 to 2.0.10

includes/class-ss-wc-mailchimp-handler.php CHANGED
@@ -327,11 +327,11 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
327
 
328
  try {
329
 
330
- // if ( !$_POST['data']['api_key'] || empty( $_POST['data']['api_key'] ) ) {
331
 
332
- // return $this->toJSON( array( '' => __( 'Enter your api key above to see your lists', 'ss_wc_mailchimp' ) ) );
333
 
334
- // }
335
 
336
  if ( !$_POST['data']['list_id'] || empty( $_POST['data']['list_id'] ) ) {
337
 
@@ -339,9 +339,10 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
339
 
340
  }
341
 
 
342
  $list_id = $_POST['data']['list_id'];
343
 
344
- $interest_groups = $this->mailchimp()->get_interest_categories_with_interests( $list_id );
345
 
346
  $results = $interest_groups;
347
 
327
 
328
  try {
329
 
330
+ if ( !$_POST['data']['api_key'] || empty( $_POST['data']['api_key'] ) ) {
331
 
332
+ return $this->toJSON( array( '' => __( 'Enter your api key above to see your lists', 'ss_wc_mailchimp' ) ) );
333
 
334
+ }
335
 
336
  if ( !$_POST['data']['list_id'] || empty( $_POST['data']['list_id'] ) ) {
337
 
339
 
340
  }
341
 
342
+ $api_key = $_POST['data']['api_key'];
343
  $list_id = $_POST['data']['list_id'];
344
 
345
+ $interest_groups = $this->mailchimp( $api_key )->get_interest_categories_with_interests( $list_id );
346
 
347
  $results = $interest_groups;
348
 
includes/class-ss-wc-mailchimp-plugin.php CHANGED
@@ -9,7 +9,7 @@ final class SS_WC_MailChimp_Plugin {
9
  * Plugin version
10
  * @var string
11
  */
12
- private static $version = '2.0.9';
13
 
14
  /**
15
  * Plugin singleton instance
9
  * Plugin version
10
  * @var string
11
  */
12
+ private static $version = '2.0.10';
13
 
14
  /**
15
  * Plugin singleton instance
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ssms.us/hVdk
4
  Tags: woocommerce, mailchimp
5
  Requires at least: 3.5.1
6
  Tested up to: 4.6.1
7
- Stable tag: 2.0.9
8
  License: GPLv3
9
 
10
  Simple and flexible MailChimp integration for WooCommerce.
@@ -113,7 +113,7 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
113
 
114
  == Changelog ==
115
 
116
- #### 2.0 - 2.0.9 - September 19, 2016
117
 
118
  **NOTE:** You must upgrade to version 2.X by December 31, 2016 as prior versions of the MailChimp API will stop working at that point.
119
 
4
  Tags: woocommerce, mailchimp
5
  Requires at least: 3.5.1
6
  Tested up to: 4.6.1
7
+ Stable tag: 2.0.10
8
  License: GPLv3
9
 
10
  Simple and flexible MailChimp integration for WooCommerce.
113
 
114
  == Changelog ==
115
 
116
+ #### 2.0 - 2.0.10 - September 19, 2016
117
 
118
  **NOTE:** You must upgrade to version 2.X by December 31, 2016 as prior versions of the MailChimp API will stop working at that point.
119
 
woocommerce-mailchimp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Saint Systems
7
  * Author URI: https://www.saintsystems.com
8
- * Version: 2.0.9
9
  * Text Domain: woocommerce-mailchimp
10
  * Domain Path: languages
11
  *
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Saint Systems
7
  * Author URI: https://www.saintsystems.com
8
+ * Version: 2.0.10
9
  * Text Domain: woocommerce-mailchimp
10
  * Domain Path: languages
11
  *