WooCommerce MailChimp - Version 2.0.11

Version Description

Download this release

Release Info

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

Code changes from version 2.0.10 to 2.0.11

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.10';
13
 
14
  /**
15
  * Plugin singleton instance
@@ -79,7 +79,7 @@ final class SS_WC_MailChimp_Plugin {
79
  */
80
  public function settings( $refresh = false ) {
81
 
82
- if ( empty( $this->settings ) ) {
83
 
84
  $defaults = require( SS_WC_MAILCHIMP_DIR . 'config/default-settings.php' );
85
  $settings = array();
9
  * Plugin version
10
  * @var string
11
  */
12
+ private static $version = '2.0.11';
13
 
14
  /**
15
  * Plugin singleton instance
79
  */
80
  public function settings( $refresh = false ) {
81
 
82
+ if ( empty( $this->settings ) || true === $refresh ) {
83
 
84
  $defaults = require( SS_WC_MAILCHIMP_DIR . 'config/default-settings.php' );
85
  $settings = array();
includes/class-ss-wc-settings-mailchimp.php CHANGED
@@ -292,6 +292,11 @@ if ( ! class_exists( 'SS_WC_Settings_MailChimp' ) ) {
292
  if ( !isset( $_POST[ 'ss_wc_mailchimp_api_key' ] ) || empty( $_POST[ 'ss_wc_mailchimp_api_key' ] ) ) {
293
  delete_transient( 'sswcmc_lists' );
294
  }
 
 
 
 
 
295
  }
296
 
297
  /**
@@ -543,11 +548,11 @@ if ( ! class_exists( 'SS_WC_Settings_MailChimp' ) ) {
543
  * API Instance Singleton
544
  * @return Object
545
  */
546
- public function mailchimp() {
547
 
548
  $sswcmc = SSWCMC();
549
 
550
- return $sswcmc->mailchimp();
551
 
552
  }
553
 
292
  if ( !isset( $_POST[ 'ss_wc_mailchimp_api_key' ] ) || empty( $_POST[ 'ss_wc_mailchimp_api_key' ] ) ) {
293
  delete_transient( 'sswcmc_lists' );
294
  }
295
+
296
+ $sswcmc = SSWCMC();
297
+ // Trigger reload of plugin settings
298
+ $settings = $sswcmc->settings( true );
299
+ $sswcmc->mailchimp( $settings['api_key'] );
300
  }
301
 
302
  /**
548
  * API Instance Singleton
549
  * @return Object
550
  */
551
+ public function mailchimp( $api_key = null ) {
552
 
553
  $sswcmc = SSWCMC();
554
 
555
+ return $sswcmc->mailchimp( $api_key );
556
 
557
  }
558
 
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.10
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.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
 
4
  Tags: woocommerce, mailchimp
5
  Requires at least: 3.5.1
6
  Tested up to: 4.6.1
7
+ Stable tag: 2.0.11
8
  License: GPLv3
9
 
10
  Simple and flexible MailChimp integration for WooCommerce.
113
 
114
  == Changelog ==
115
 
116
+ #### 2.0 - 2.0.11 - 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.10
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.11
9
  * Text Domain: woocommerce-mailchimp
10
  * Domain Path: languages
11
  *