Plugin Directory

Changeset 2612792


Ignore:
Timestamp:
10/12/2021 05:39:33 AM (4 years ago)
Author:
anderly
Message:

Release 2.4.8, see readme.txt for the changelog.

Location:
woocommerce-mailchimp
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-mailchimp/tags/2.4.8/includes/class-ss-wc-mailchimp-plugin.php

    r2610577 r2612792  
    1616     * @var string
    1717     */
    18     private static $version = '2.4.7';
     18    private static $version = '2.4.8';
    1919
    2020    /**
  • woocommerce-mailchimp/tags/2.4.8/includes/class-ss-wc-mailchimp.php

    r2610577 r2612792  
    216216        $subscriber_hash = $this->get_subscriber_hash( $email_address );
    217217
    218         $resource = "lists/$list_id/members/$subscriber_hash?skip_merge_validation=true";
     218        $base_resource = "lists/$list_id/members/$subscriber_hash";
     219
     220        $resource = "$base_resource?skip_merge_validation=true";
    219221
    220222        $response = $this->api->put( $resource, $args );
     
    232234            do_action( 'sswcmc_log', __METHOD__ . ' Attempting to add tags to subscriber ('.$email_address.'): ' . print_r( $args, true ) );
    233235
    234             $response_tags = $this->api->post( $resource . '/tags', $args );
     236            $response_tags = $this->api->post( $base_resource . '/tags', $args );
    235237
    236238            do_action( 'sswcmc_log', __METHOD__ . ' Subscriber tags response: ' . print_r( $response_tags, true ) );
     
    278280    public function get_subscriber_hash( $email_address ) {
    279281
    280         return md5( strtolower( $email_address ) );
     282        return md5( strtolower( trim( $email_address ) ) );
    281283
    282284    } //end function get_subscriber_hash
  • woocommerce-mailchimp/tags/2.4.8/readme.txt

    r2610577 r2612792  
    77WC tested up to: 5.7.1
    88Requires PHP: 5.6
    9 Stable tag: 2.4.7
     9Stable tag: 2.4.8
     10Version: 2.4.8
    1011License: GPLv3
    1112
     
    119120
    120121== Changelog ==
     122
     123#### 2.4.8 - Oct 12, 2021
     124- Bug fix for tags not passing to Mailchimp.
    121125
    122126#### 2.4.7 - Oct 6, 2021
  • woocommerce-mailchimp/tags/2.4.8/woocommerce-mailchimp.php

    r2610577 r2612792  
    66 * Author: Saint Systems
    77 * Author URI: https://www.saintsystems.com
    8  * Version: 2.4.7
     8 * Version: 2.4.8
    99 * WC tested up to: 5.7.1
    1010 * Text Domain: woocommerce-mailchimp
  • woocommerce-mailchimp/trunk/includes/class-ss-wc-mailchimp-plugin.php

    r2610577 r2612792  
    1616     * @var string
    1717     */
    18     private static $version = '2.4.7';
     18    private static $version = '2.4.8';
    1919
    2020    /**
  • woocommerce-mailchimp/trunk/includes/class-ss-wc-mailchimp.php

    r2610577 r2612792  
    216216        $subscriber_hash = $this->get_subscriber_hash( $email_address );
    217217
    218         $resource = "lists/$list_id/members/$subscriber_hash?skip_merge_validation=true";
     218        $base_resource = "lists/$list_id/members/$subscriber_hash";
     219
     220        $resource = "$base_resource?skip_merge_validation=true";
    219221
    220222        $response = $this->api->put( $resource, $args );
     
    232234            do_action( 'sswcmc_log', __METHOD__ . ' Attempting to add tags to subscriber ('.$email_address.'): ' . print_r( $args, true ) );
    233235
    234             $response_tags = $this->api->post( $resource . '/tags', $args );
     236            $response_tags = $this->api->post( $base_resource . '/tags', $args );
    235237
    236238            do_action( 'sswcmc_log', __METHOD__ . ' Subscriber tags response: ' . print_r( $response_tags, true ) );
     
    278280    public function get_subscriber_hash( $email_address ) {
    279281
    280         return md5( strtolower( $email_address ) );
     282        return md5( strtolower( trim( $email_address ) ) );
    281283
    282284    } //end function get_subscriber_hash
  • woocommerce-mailchimp/trunk/readme.txt

    r2610577 r2612792  
    77WC tested up to: 5.7.1
    88Requires PHP: 5.6
    9 Stable tag: 2.4.7
     9Stable tag: 2.4.8
     10Version: 2.4.8
    1011License: GPLv3
    1112
     
    119120
    120121== Changelog ==
     122
     123#### 2.4.8 - Oct 12, 2021
     124- Bug fix for tags not passing to Mailchimp.
    121125
    122126#### 2.4.7 - Oct 6, 2021
  • woocommerce-mailchimp/trunk/woocommerce-mailchimp.php

    r2610577 r2612792  
    66 * Author: Saint Systems
    77 * Author URI: https://www.saintsystems.com
    8  * Version: 2.4.7
     8 * Version: 2.4.8
    99 * WC tested up to: 5.7.1
    1010 * Text Domain: woocommerce-mailchimp
Note: See TracChangeset for help on using the changeset viewer.