WooCommerce MailChimp - Version 2.0.16

Version Description

Download this release

Release Info

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

Code changes from version 2.0.15 to 2.0.16

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.15';
13
 
14
  /**
15
  * Plugin singleton instance
@@ -71,6 +71,7 @@ final class SS_WC_MailChimp_Plugin {
71
  self::$instance->load_plugin_textdomain();
72
 
73
  //if ( self::$instance->compatibility->is_valid() ) {
 
74
  self::$instance->add_hooks();
75
  do_action( 'ss_wc_mailchimp_loaded' );
76
  //}
@@ -355,6 +356,28 @@ final class SS_WC_MailChimp_Plugin {
355
 
356
  } //end function includes
357
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
358
  /**
359
  * Load Localization files.
360
  *
@@ -398,30 +421,6 @@ final class SS_WC_MailChimp_Plugin {
398
 
399
  } //end function load_plugin_textdomain
400
 
401
- /**
402
- * Add plugin hooks
403
- */
404
- private function add_hooks() {
405
-
406
- /** Register hooks that are fired when the plugin is activated and deactivated. */
407
- register_activation_hook( SS_WC_MAILCHIMP_FILE, array( __CLASS__, 'activate' ) );
408
- register_deactivation_hook( SS_WC_MAILCHIMP_FILE, array( __CLASS__, 'deactivate' ) );
409
-
410
- //add_action( 'plugins_loaded', array( self::$instance, 'on_plugins_loaded' ) );
411
-
412
- // Add the "Settings" links on the Plugins administration screen
413
- if ( is_admin() ) {
414
-
415
- add_filter( 'plugin_action_links_' . plugin_basename( SS_WC_MAILCHIMP_FILE ), array( $this, 'action_links' ) );
416
-
417
- add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_mailchimp_settings' ) );
418
-
419
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts') );
420
-
421
- }
422
-
423
- } //end function add_hooks
424
-
425
  /**
426
  * Add Settings link to plugins list
427
  *
@@ -478,11 +477,17 @@ final class SS_WC_MailChimp_Plugin {
478
 
479
  } //end function enqueue_scripts
480
 
 
 
 
 
481
  public static function update() {
 
482
  require_once( 'class-ss-wc-mailchimp-migrator.php' );
483
 
484
  SS_WC_MailChimp_Migrator::migrate( self::version() );
485
- }
 
486
 
487
  /**
488
  * Plugin activate function.
9
  * Plugin version
10
  * @var string
11
  */
12
+ private static $version = '2.0.16';
13
 
14
  /**
15
  * Plugin singleton instance
71
  self::$instance->load_plugin_textdomain();
72
 
73
  //if ( self::$instance->compatibility->is_valid() ) {
74
+ self::update();
75
  self::$instance->add_hooks();
76
  do_action( 'ss_wc_mailchimp_loaded' );
77
  //}
356
 
357
  } //end function includes
358
 
359
+ /**
360
+ * Add plugin hooks
361
+ */
362
+ private function add_hooks() {
363
+
364
+ /** Register hooks that are fired when the plugin is activated and deactivated. */
365
+ register_activation_hook( SS_WC_MAILCHIMP_FILE, array( __CLASS__, 'activate' ) );
366
+ register_deactivation_hook( SS_WC_MAILCHIMP_FILE, array( __CLASS__, 'deactivate' ) );
367
+
368
+ // Add the "Settings" links on the Plugins administration screen
369
+ if ( is_admin() ) {
370
+
371
+ add_filter( 'plugin_action_links_' . plugin_basename( SS_WC_MAILCHIMP_FILE ), array( $this, 'action_links' ) );
372
+
373
+ add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_mailchimp_settings' ) );
374
+
375
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts') );
376
+
377
+ }
378
+
379
+ } //end function add_hooks
380
+
381
  /**
382
  * Load Localization files.
383
  *
421
 
422
  } //end function load_plugin_textdomain
423
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  /**
425
  * Add Settings link to plugins list
426
  *
477
 
478
  } //end function enqueue_scripts
479
 
480
+ /**
481
+ * Handles running plugin upgrades if necessary
482
+ * @return void
483
+ */
484
  public static function update() {
485
+
486
  require_once( 'class-ss-wc-mailchimp-migrator.php' );
487
 
488
  SS_WC_MailChimp_Migrator::migrate( self::version() );
489
+
490
+ } //end function update
491
 
492
  /**
493
  * Plugin activate function.
includes/class-ss-wc-settings-mailchimp.php CHANGED
@@ -87,12 +87,12 @@ if ( ! class_exists( 'SS_WC_Settings_MailChimp' ) ) {
87
  }
88
 
89
  /**
90
- * double_optin function.
91
  *
92
  * @access public
93
  * @return boolean
94
  */
95
- public function double_optin() {
96
  return 'yes' === $this->get_option( 'double_opt_in' );
97
  }
98
 
87
  }
88
 
89
  /**
90
+ * double_opt_in function.
91
  *
92
  * @access public
93
  * @return boolean
94
  */
95
+ public function double_opt_in() {
96
  return 'yes' === $this->get_option( 'double_opt_in' );
97
  }
98
 
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.15
8
  License: GPLv3
9
 
10
  Simple and flexible MailChimp integration for WooCommerce.
@@ -115,7 +115,7 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
115
 
116
  **IMPORTANT:** You must upgrade to version 2.X by December 31, 2016 as prior versions of the MailChimp API will stop working at that point.
117
 
118
- #### 2.0.15 - September 22, 2016
119
 
120
  - Fix for activation error running migrations.
121
  - Double opt-in fix.
4
  Tags: woocommerce, mailchimp
5
  Requires at least: 3.5.1
6
  Tested up to: 4.6.1
7
+ Stable tag: 2.0.16
8
  License: GPLv3
9
 
10
  Simple and flexible MailChimp integration for WooCommerce.
115
 
116
  **IMPORTANT:** You must upgrade to version 2.X by December 31, 2016 as prior versions of the MailChimp API will stop working at that point.
117
 
118
+ #### 2.0.15 - 2.0.16 - September 22, 2016
119
 
120
  - Fix for activation error running migrations.
121
  - Double opt-in fix.
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.15
9
  * Text Domain: woocommerce-mailchimp
10
  * Domain Path: languages
11
  *
@@ -32,11 +32,9 @@ define( 'SS_WC_MAILCHIMP_FILE', __FILE__ );
32
  */
33
  require_once( 'includes/class-ss-wc-mailchimp-plugin.php' );
34
 
35
- //add_action( 'plugins_loaded', array( 'SS_WC_MailChimp_Plugin', 'instance' ), 0 );
36
  function SSWCMC() {
37
  return SS_WC_MailChimp_Plugin::get_instance();
38
  }
39
 
40
  // Get WooCommerce Mailchimp Running.
41
- //add_action( 'plugins_loaded', 'SSWCMC', 0 );
42
  SSWCMC();
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.16
9
  * Text Domain: woocommerce-mailchimp
10
  * Domain Path: languages
11
  *
32
  */
33
  require_once( 'includes/class-ss-wc-mailchimp-plugin.php' );
34
 
 
35
  function SSWCMC() {
36
  return SS_WC_MailChimp_Plugin::get_instance();
37
  }
38
 
39
  // Get WooCommerce Mailchimp Running.
 
40
  SSWCMC();