Version Description
Download this release
Release Info
Developer | anderly |
Plugin | WooCommerce MailChimp |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
includes/class-ss-wc-mailchimp-handler.php
CHANGED
@@ -150,7 +150,7 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
|
|
150 |
|
151 |
}
|
152 |
|
153 |
-
$api_key = $_POST['data']['api_key'];
|
154 |
|
155 |
$account = $this->sswcmc->mailchimp()->get_account( $api_key );
|
156 |
|
@@ -182,7 +182,7 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
|
|
182 |
|
183 |
}
|
184 |
|
185 |
-
$api_key = $_POST['data']['api_key'];
|
186 |
|
187 |
$lists = $this->sswcmc->mailchimp( $api_key )->get_lists();
|
188 |
|
@@ -220,8 +220,8 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
|
|
220 |
|
221 |
}
|
222 |
|
223 |
-
$api_key = $_POST['data']['api_key'];
|
224 |
-
$list_id = $_POST['data']['list_id'];
|
225 |
|
226 |
$interest_groups = $this->sswcmc->mailchimp( $api_key )->get_interest_categories_with_interests( $list_id );
|
227 |
|
@@ -259,8 +259,8 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
|
|
259 |
|
260 |
}
|
261 |
|
262 |
-
$api_key = $_POST['data']['api_key'];
|
263 |
-
$list_id = $_POST['data']['list_id'];
|
264 |
|
265 |
$tags = $this->sswcmc->mailchimp( $api_key )->get_tags( $list_id );
|
266 |
|
@@ -298,8 +298,8 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
|
|
298 |
|
299 |
}
|
300 |
|
301 |
-
$api_key = $_POST['data']['api_key'];
|
302 |
-
$list_id = $_POST['data']['list_id'];
|
303 |
|
304 |
$merge_fields = $this->sswcmc->mailchimp( $api_key )->get_merge_fields( $list_id );
|
305 |
|
150 |
|
151 |
}
|
152 |
|
153 |
+
$api_key = sanitize_text_field( $_POST['data']['api_key'] );
|
154 |
|
155 |
$account = $this->sswcmc->mailchimp()->get_account( $api_key );
|
156 |
|
182 |
|
183 |
}
|
184 |
|
185 |
+
$api_key = sanitize_text_field( $_POST['data']['api_key'] );
|
186 |
|
187 |
$lists = $this->sswcmc->mailchimp( $api_key )->get_lists();
|
188 |
|
220 |
|
221 |
}
|
222 |
|
223 |
+
$api_key = sanitize_text_field( $_POST['data']['api_key'] );
|
224 |
+
$list_id = sanitize_text_field( $_POST['data']['list_id'] );
|
225 |
|
226 |
$interest_groups = $this->sswcmc->mailchimp( $api_key )->get_interest_categories_with_interests( $list_id );
|
227 |
|
259 |
|
260 |
}
|
261 |
|
262 |
+
$api_key = sanitize_text_field( $_POST['data']['api_key'] );
|
263 |
+
$list_id = sanitize_text_field( $_POST['data']['list_id'] );
|
264 |
|
265 |
$tags = $this->sswcmc->mailchimp( $api_key )->get_tags( $list_id );
|
266 |
|
298 |
|
299 |
}
|
300 |
|
301 |
+
$api_key = sanitize_text_field( $_POST['data']['api_key'] );
|
302 |
+
$list_id = sanitize_text_field( $_POST['data']['list_id'] );
|
303 |
|
304 |
$merge_fields = $this->sswcmc->mailchimp( $api_key )->get_merge_fields( $list_id );
|
305 |
|
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
|
@@ -620,11 +620,13 @@ final class SS_WC_MailChimp_Plugin {
|
|
620 |
*/
|
621 |
public function process_actions() {
|
622 |
if ( isset( $_POST['sswcmc-action'] ) ) {
|
623 |
-
|
|
|
624 |
}
|
625 |
|
626 |
if ( isset( $_GET['sswcmc-action'] ) ) {
|
627 |
-
|
|
|
628 |
}
|
629 |
}
|
630 |
|
15 |
*
|
16 |
* @var string
|
17 |
*/
|
18 |
+
private static $version = '2.3.4';
|
19 |
|
20 |
/**
|
21 |
* Plugin singleton instance
|
620 |
*/
|
621 |
public function process_actions() {
|
622 |
if ( isset( $_POST['sswcmc-action'] ) ) {
|
623 |
+
$action = sanitize_key( $_POST['sswcmc-action'] );
|
624 |
+
do_action( 'sswcmc_' . $action, $_POST );
|
625 |
}
|
626 |
|
627 |
if ( isset( $_GET['sswcmc-action'] ) ) {
|
628 |
+
$action = sanitize_key( $_GET['sswcmc-action'] );
|
629 |
+
do_action( 'sswcmc_' . $action, $_GET );
|
630 |
}
|
631 |
}
|
632 |
|
includes/class-ss-wc-settings-mailchimp.php
CHANGED
@@ -300,12 +300,12 @@ if ( ! class_exists( 'SS_WC_Settings_MailChimp' ) ) {
|
|
300 |
|
301 |
WC_Admin_Settings::save_fields( $settings );
|
302 |
|
303 |
-
if ( !isset( $_POST[ 'ss_wc_mailchimp_api_key' ] ) || empty( $_POST[ 'ss_wc_mailchimp_api_key' ] ) ) {
|
304 |
delete_transient( 'sswcmc_lists' );
|
305 |
}
|
306 |
|
307 |
$sswcmc = SSWCMC();
|
308 |
-
// Trigger reload of plugin settings
|
309 |
$settings = $sswcmc->settings( true );
|
310 |
|
311 |
}
|
300 |
|
301 |
WC_Admin_Settings::save_fields( $settings );
|
302 |
|
303 |
+
if ( ! isset( $_POST[ 'ss_wc_mailchimp_api_key' ] ) || empty( $_POST[ 'ss_wc_mailchimp_api_key' ] ) ) {
|
304 |
delete_transient( 'sswcmc_lists' );
|
305 |
}
|
306 |
|
307 |
$sswcmc = SSWCMC();
|
308 |
+
// Trigger reload of plugin settings.
|
309 |
$settings = $sswcmc->settings( true );
|
310 |
|
311 |
}
|
includes/lib/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php
CHANGED
@@ -533,9 +533,9 @@ abstract class ActionScheduler_Abstract_ListTable extends WP_List_Table {
|
|
533 |
}
|
534 |
}
|
535 |
|
536 |
-
$method = 'row_action_' . $_REQUEST['row_action'];
|
537 |
|
538 |
-
if ( $_REQUEST['nonce'] === wp_create_nonce( $_REQUEST[ 'row_action' ] . '::' . $_REQUEST[ 'row_id' ] ) && method_exists( $this, $method ) ) {
|
539 |
$this->$method( $_REQUEST['row_id'] );
|
540 |
}
|
541 |
|
533 |
}
|
534 |
}
|
535 |
|
536 |
+
$method = 'row_action_' . sanitize_text_field( $_REQUEST['row_action'] );
|
537 |
|
538 |
+
if ( $_REQUEST['nonce'] === wp_create_nonce( sanitize_text_field( $_REQUEST[ 'row_action' ] ) . '::' . sanitize_text_field( $_REQUEST[ 'row_id' ] ) ) && method_exists( $this, $method ) ) {
|
539 |
$this->$method( $_REQUEST['row_id'] );
|
540 |
}
|
541 |
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
=== WooCommerce Mailchimp ===
|
2 |
Contributors: saintsystems, anderly
|
3 |
Donate link: http://ssms.us/hVdk
|
4 |
Tags: woocommerce, mailchimp, ecommerce, email
|
@@ -6,19 +6,19 @@ Requires at least: 4.7.0
|
|
6 |
Tested up to: 5.2.2
|
7 |
WC tested up to: 3.7.0
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.3.
|
10 |
License: GPLv3
|
11 |
|
12 |
Simple and flexible Mailchimp integration for WooCommerce.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
WooCommerce Mailchimp provides simple and flexible Mailchimp integration for WooCommerce.
|
17 |
|
18 |
Automatically subscribe customers to a designated Mailchimp list and, optionally, Mailchimp interest groups and tags upon order creation or order completion.
|
19 |
This can be done quietly or based on the user's consent with several opt-in settings that support international opt-in laws.
|
20 |
|
21 |
-
Upgrade to [WooCommerce Mailchimp Pro](https://www.saintsystems.com/products/woocommerce-mailchimp-pro/) for more advanced features including WooCommerce Subscriptions support and the ability to set product-specific lists, groups and tags.
|
22 |
|
23 |
= Features =
|
24 |
|
@@ -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.3 - August 29, 2019
|
123 |
- Fix ActionScheduler 2.2.5 version.
|
124 |
|
1 |
+
=== WP WooCommerce Mailchimp ===
|
2 |
Contributors: saintsystems, anderly
|
3 |
Donate link: http://ssms.us/hVdk
|
4 |
Tags: woocommerce, mailchimp, ecommerce, email
|
6 |
Tested up to: 5.2.2
|
7 |
WC tested up to: 3.7.0
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.3.4
|
10 |
License: GPLv3
|
11 |
|
12 |
Simple and flexible Mailchimp integration for WooCommerce.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
WP WooCommerce Mailchimp provides simple and flexible Mailchimp integration for WooCommerce.
|
17 |
|
18 |
Automatically subscribe customers to a designated Mailchimp list and, optionally, Mailchimp interest groups and tags upon order creation or order completion.
|
19 |
This can be done quietly or based on the user's consent with several opt-in settings that support international opt-in laws.
|
20 |
|
21 |
+
Upgrade to [WP WooCommerce Mailchimp Pro](https://www.saintsystems.com/products/woocommerce-mailchimp-pro/) for more advanced features including WooCommerce Subscriptions support and the ability to set product-specific lists, groups and tags.
|
22 |
|
23 |
= Features =
|
24 |
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
#### 2.3.4 - October 29, 2019
|
123 |
+
- Change plugin display name.
|
124 |
+
- Sanitize post data.
|
125 |
+
|
126 |
#### 2.3.3 - August 29, 2019
|
127 |
- Fix ActionScheduler 2.2.5 version.
|
128 |
|
woocommerce-mailchimp.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: WooCommerce Mailchimp
|
4 |
* Plugin URI: https://www.saintsystems.com/products/woocommerce-mailchimp/
|
5 |
-
* Description: 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.7.0
|
10 |
* Text Domain: woocommerce-mailchimp
|
11 |
* Domain Path: languages
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: WP WooCommerce Mailchimp
|
4 |
* Plugin URI: https://www.saintsystems.com/products/woocommerce-mailchimp/
|
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.4
|
9 |
* WC tested up to: 3.7.0
|
10 |
* Text Domain: woocommerce-mailchimp
|
11 |
* Domain Path: languages
|