WooCommerce MailChimp - Version 2.4.8

Version Description

Download this release

Release Info

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

Code changes from version 2.4.7 to 2.4.8

includes/class-ss-wc-mailchimp-plugin.php CHANGED
@@ -15,7 +15,7 @@ final class SS_WC_MailChimp_Plugin {
15
  *
16
  * @var string
17
  */
18
- private static $version = '2.4.7';
19
 
20
  /**
21
  * Plugin singleton instance
15
  *
16
  * @var string
17
  */
18
+ private static $version = '2.4.8';
19
 
20
  /**
21
  * Plugin singleton instance
includes/class-ss-wc-mailchimp.php CHANGED
@@ -215,7 +215,9 @@ class SS_WC_MailChimp {
215
 
216
  $subscriber_hash = $this->get_subscriber_hash( $email_address );
217
 
218
- $resource = "lists/$list_id/members/$subscriber_hash?skip_merge_validation=true";
 
 
219
 
220
  $response = $this->api->put( $resource, $args );
221
 
@@ -231,7 +233,7 @@ class SS_WC_MailChimp {
231
 
232
  do_action( 'sswcmc_log', __METHOD__ . ' Attempting to add tags to subscriber ('.$email_address.'): ' . print_r( $args, true ) );
233
 
234
- $response_tags = $this->api->post( $resource . '/tags', $args );
235
 
236
  do_action( 'sswcmc_log', __METHOD__ . ' Subscriber tags response: ' . print_r( $response_tags, true ) );
237
  }
@@ -277,7 +279,7 @@ class SS_WC_MailChimp {
277
  */
278
  public function get_subscriber_hash( $email_address ) {
279
 
280
- return md5( strtolower( $email_address ) );
281
 
282
  } //end function get_subscriber_hash
283
 
215
 
216
  $subscriber_hash = $this->get_subscriber_hash( $email_address );
217
 
218
+ $base_resource = "lists/$list_id/members/$subscriber_hash";
219
+
220
+ $resource = "$base_resource?skip_merge_validation=true";
221
 
222
  $response = $this->api->put( $resource, $args );
223
 
233
 
234
  do_action( 'sswcmc_log', __METHOD__ . ' Attempting to add tags to subscriber ('.$email_address.'): ' . print_r( $args, true ) );
235
 
236
+ $response_tags = $this->api->post( $base_resource . '/tags', $args );
237
 
238
  do_action( 'sswcmc_log', __METHOD__ . ' Subscriber tags response: ' . print_r( $response_tags, true ) );
239
  }
279
  */
280
  public function get_subscriber_hash( $email_address ) {
281
 
282
+ return md5( strtolower( trim( $email_address ) ) );
283
 
284
  } //end function get_subscriber_hash
285
 
readme.txt CHANGED
@@ -6,7 +6,8 @@ Requires at least: 4.7.0
6
  Tested up to: 5.8.1
7
  WC tested up to: 5.7.1
8
  Requires PHP: 5.6
9
- Stable tag: 2.4.7
 
10
  License: GPLv3
11
 
12
  Simple and flexible Mailchimp integration for WooCommerce.
@@ -119,6 +120,9 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
119
 
120
  == Changelog ==
121
 
 
 
 
122
  #### 2.4.7 - Oct 6, 2021
123
  - Update to pass skip_merge_validation argument when subscribing users.
124
 
6
  Tested up to: 5.8.1
7
  WC tested up to: 5.7.1
8
  Requires PHP: 5.6
9
+ Stable tag: 2.4.8
10
+ Version: 2.4.8
11
  License: GPLv3
12
 
13
  Simple and flexible Mailchimp integration for WooCommerce.
120
 
121
  == Changelog ==
122
 
123
+ #### 2.4.8 - Oct 12, 2021
124
+ - Bug fix for tags not passing to Mailchimp.
125
+
126
  #### 2.4.7 - Oct 6, 2021
127
  - Update to pass skip_merge_validation argument when subscribing users.
128
 
woocommerce-mailchimp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: WP WooCommerce Mailchimp provides simple and flexible Mailchimp integration for WooCommerce.
6
  * Author: Saint Systems
7
  * Author URI: https://www.saintsystems.com
8
- * Version: 2.4.7
9
  * WC tested up to: 5.7.1
10
  * Text Domain: woocommerce-mailchimp
11
  * Domain Path: languages
5
  * Description: WP WooCommerce Mailchimp provides simple and flexible Mailchimp integration for WooCommerce.
6
  * Author: Saint Systems
7
  * Author URI: https://www.saintsystems.com
8
+ * Version: 2.4.8
9
  * WC tested up to: 5.7.1
10
  * Text Domain: woocommerce-mailchimp
11
  * Domain Path: languages