WooCommerce MailChimp - Version 1.2.3

Version Description

  • Fixed plugin settings link for WooCommerce 2.1
Download this release

Release Info

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

Code changes from version 1.2.2 to 1.2.3

README.md CHANGED
@@ -64,6 +64,9 @@ If you need help, have problems, want to leave feedback or want to provide const
64
 
65
  ### Changelog
66
 
 
 
 
67
  ##### 1.2.2
68
  * WooCommerce 2.1 fix for order custom fields
69
 
64
 
65
  ### Changelog
66
 
67
+ ##### 1.2.3
68
+ * Fixed plugin settings link for WooCommerce 2.1
69
+
70
  ##### 1.2.2
71
  * WooCommerce 2.1 fix for order custom fields
72
 
classes/class-ss-wc-integration-mailchimp.php CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
  *
10
  * @class SS_WC_Integration_MailChimp
11
  * @extends WC_Integration
12
- * @version 1.2.1
13
  * @package WooCommerce MailChimp
14
  * @author Saint Systems
15
  */
9
  *
10
  * @class SS_WC_Integration_MailChimp
11
  * @extends WC_Integration
12
+ * @version 1.2.3
13
  * @package WooCommerce MailChimp
14
  * @author Saint Systems
15
  */
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: anderly, saintsystems
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.8.1
6
- Stable tag: 1.2.2
7
  License: GPLv3
8
 
9
  Simple and flexible MailChimp integration for WooCommerce.
@@ -78,6 +78,9 @@ If you need help, have problems, want to leave feedback or want to provide const
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 1.2.2 =
82
  * WooCommerce 2.1 fix for order custom fields
83
 
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.2.3
7
  License: GPLv3
8
 
9
  Simple and flexible MailChimp integration for WooCommerce.
78
 
79
  == Changelog ==
80
 
81
+ = 1.2.3 =
82
+ * Fixed plugin settings link for WooCommerce 2.1
83
+
84
  = 1.2.2 =
85
  * WooCommerce 2.1 fix for order custom fields
86
 
woocommerce-mailchimp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Adam Anderly
7
  * Author URI: http://anderly.com
8
- * Version: 1.2.2
9
  * Text Domain: ss_wc_mailchimp
10
  * Domain Path: languages
11
  *
@@ -39,8 +39,16 @@ function woocommerce_mailchimp_init() {
39
 
40
  function action_links( $links ) {
41
 
 
 
 
 
 
 
 
 
42
  $plugin_links = array(
43
- '<a href="' . admin_url( 'admin.php?page=woocommerce_settings&tab=integration&section=mailchimp' ) . '">' . __( 'Settings', 'ss_wc_mailchimp' ) . '</a>',
44
  );
45
 
46
  return array_merge( $plugin_links, $links );
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Adam Anderly
7
  * Author URI: http://anderly.com
8
+ * Version: 1.2.3
9
  * Text Domain: ss_wc_mailchimp
10
  * Domain Path: languages
11
  *
39
 
40
  function action_links( $links ) {
41
 
42
+ global $woocommerce;
43
+
44
+ $settings_url = admin_url( 'admin.php?page=woocommerce_settings&tab=integration&section=mailchimp' );
45
+
46
+ if ( $woocommerce->version >= '2.1' ) {
47
+ $settings_url = admin_url( 'admin.php?page=wc-settings&tab=integration&section=mailchimp' );
48
+ }
49
+
50
  $plugin_links = array(
51
+ '<a href="' . $settings_url . '">' . __( 'Settings', 'ss_wc_mailchimp' ) . '</a>',
52
  );
53
 
54
  return array_merge( $plugin_links, $links );