Version Description
Download this release
Release Info
Developer | anderly |
Plugin | WooCommerce MailChimp |
Version | 2.3.10 |
Comparing to | |
See all releases |
Code changes from version 2.3.9 to 2.3.10
includes/class-ss-wc-mailchimp-api.php
CHANGED
@@ -69,7 +69,7 @@ class SS_WC_MailChimp_API {
|
|
69 |
public function get( $resource, $args = array() ) {
|
70 |
|
71 |
if ( is_array( $args) && ! array_key_exists( 'count', $args ) ) {
|
72 |
-
$args['count'] =
|
73 |
}
|
74 |
|
75 |
return $this->api_request( 'GET', $resource, $args );
|
69 |
public function get( $resource, $args = array() ) {
|
70 |
|
71 |
if ( is_array( $args) && ! array_key_exists( 'count', $args ) ) {
|
72 |
+
$args['count'] = 100;
|
73 |
}
|
74 |
|
75 |
return $this->api_request( 'GET', $resource, $args );
|
includes/class-ss-wc-mailchimp-migrator.php
CHANGED
@@ -51,13 +51,13 @@ final class SS_WC_MailChimp_Migrator {
|
|
51 |
}
|
52 |
|
53 |
for ($start; $start < count(self::$versions) - 1; $start++) {
|
54 |
-
|
55 |
-
|
56 |
$next_version = self::$versions[$next];
|
57 |
|
58 |
// error_log( 'Migrating from ' . $current_version . ' to ' . $target_version );
|
59 |
//
|
60 |
-
|
61 |
|
62 |
do_action( 'sswcmc_log', 'Migrating from ' . $current_version . ' to ' . $target_version );
|
63 |
|
51 |
}
|
52 |
|
53 |
for ($start; $start < count(self::$versions) - 1; $start++) {
|
54 |
+
$next = $start + 1;
|
55 |
+
$current_version = self::$versions[$start];
|
56 |
$next_version = self::$versions[$next];
|
57 |
|
58 |
// error_log( 'Migrating from ' . $current_version . ' to ' . $target_version );
|
59 |
//
|
60 |
+
if ( file_exists( SS_WC_MAILCHIMP_DIR . "includes/migrations/class-ss-wc-migration-from-$current_version-to-$next_version.php" ) ) {
|
61 |
|
62 |
do_action( 'sswcmc_log', 'Migrating from ' . $current_version . ' to ' . $target_version );
|
63 |
|
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.3.
|
19 |
|
20 |
/**
|
21 |
* Plugin singleton instance
|
15 |
*
|
16 |
* @var string
|
17 |
*/
|
18 |
+
private static $version = '2.3.10';
|
19 |
|
20 |
/**
|
21 |
* Plugin singleton instance
|
includes/class-ss-wc-mailchimp.php
CHANGED
@@ -91,7 +91,7 @@ class SS_WC_MailChimp {
|
|
91 |
$resource = 'lists';
|
92 |
|
93 |
if ( ! array_key_exists( 'count', $args ) ) {
|
94 |
-
$args['count'] =
|
95 |
}
|
96 |
|
97 |
$response = $this->api->get( $resource, $args );
|
@@ -131,7 +131,7 @@ class SS_WC_MailChimp {
|
|
131 |
$resource = 'lists/';
|
132 |
|
133 |
if ( ! array_key_exists( 'count', $args ) ) {
|
134 |
-
$args['count'] =
|
135 |
}
|
136 |
|
137 |
$response = $this->api->get( $resource, $args );
|
@@ -332,7 +332,7 @@ class SS_WC_MailChimp {
|
|
332 |
|
333 |
$resource = "lists/$list_id/interest-categories";
|
334 |
|
335 |
-
$response = $this->api->get( $resource, array( 'count' =>
|
336 |
|
337 |
if ( ! $response ) {
|
338 |
return false;
|
@@ -370,7 +370,7 @@ class SS_WC_MailChimp {
|
|
370 |
|
371 |
$resource = "lists/$list_id/interest-categories/$interest_category_id/interests";
|
372 |
|
373 |
-
$response = $this->api->get( $resource, array( 'count' =>
|
374 |
|
375 |
if ( ! $response ) {
|
376 |
return false;
|
@@ -444,7 +444,7 @@ class SS_WC_MailChimp {
|
|
444 |
|
445 |
$resource = "lists/$list_id/segments?type=static";
|
446 |
|
447 |
-
$response = $this->api->get( $resource, array( 'count' =>
|
448 |
|
449 |
if ( ! $response ) {
|
450 |
return false;
|
91 |
$resource = 'lists';
|
92 |
|
93 |
if ( ! array_key_exists( 'count', $args ) ) {
|
94 |
+
$args['count'] = 500;
|
95 |
}
|
96 |
|
97 |
$response = $this->api->get( $resource, $args );
|
131 |
$resource = 'lists/';
|
132 |
|
133 |
if ( ! array_key_exists( 'count', $args ) ) {
|
134 |
+
$args['count'] = 500;
|
135 |
}
|
136 |
|
137 |
$response = $this->api->get( $resource, $args );
|
332 |
|
333 |
$resource = "lists/$list_id/interest-categories";
|
334 |
|
335 |
+
$response = $this->api->get( $resource, array( 'count' => 500 ) );
|
336 |
|
337 |
if ( ! $response ) {
|
338 |
return false;
|
370 |
|
371 |
$resource = "lists/$list_id/interest-categories/$interest_category_id/interests";
|
372 |
|
373 |
+
$response = $this->api->get( $resource, array( 'count' => 500 ) );
|
374 |
|
375 |
if ( ! $response ) {
|
376 |
return false;
|
444 |
|
445 |
$resource = "lists/$list_id/segments?type=static";
|
446 |
|
447 |
+
$response = $this->api->get( $resource, array( 'count' => 500 ) );
|
448 |
|
449 |
if ( ! $response ) {
|
450 |
return false;
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Requires at least: 4.7.0
|
|
6 |
Tested up to: 5.3.2
|
7 |
WC tested up to: 3.9.1
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.3.
|
10 |
License: GPLv3
|
11 |
|
12 |
Simple and flexible Mailchimp integration for WooCommerce.
|
@@ -119,6 +119,10 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
|
|
122 |
#### 2.3.9 - February 1, 2020
|
123 |
- Fix for migration version detection.
|
124 |
|
6 |
Tested up to: 5.3.2
|
7 |
WC tested up to: 3.9.1
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.3.10
|
10 |
License: GPLv3
|
11 |
|
12 |
Simple and flexible Mailchimp integration for WooCommerce.
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
#### 2.3.10 - March 3, 2020
|
123 |
+
- Increase API return limit count to 500.
|
124 |
+
- Tested up to WooCommerce 3.9.2
|
125 |
+
|
126 |
#### 2.3.9 - February 1, 2020
|
127 |
- Fix for migration version detection.
|
128 |
|
woocommerce-mailchimp.php
CHANGED
@@ -5,8 +5,8 @@
|
|
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.3.
|
9 |
-
* WC tested up to: 3.9.
|
10 |
* Text Domain: woocommerce-mailchimp
|
11 |
* Domain Path: languages
|
12 |
*
|
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.3.10
|
9 |
+
* WC tested up to: 3.9.2
|
10 |
* Text Domain: woocommerce-mailchimp
|
11 |
* Domain Path: languages
|
12 |
*
|