WooCommerce MailChimp - Version 2.1.17

Version Description

Download this release

Release Info

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

Code changes from version 2.1.16 to 2.1.17

includes/class-ss-wc-mailchimp-compatibility.php CHANGED
@@ -90,8 +90,8 @@ final class SS_WC_MailChimp_Compatibility {
90
  */
91
  public static function is_valid() {
92
 
93
- return ( self::is_valid_woocommerce()
94
- && self::is_valid_wordpress()
95
  && self::is_valid_php()
96
  );
97
 
@@ -195,7 +195,7 @@ final class SS_WC_MailChimp_Compatibility {
195
  } else {
196
 
197
  if ( $wc_status = self::get_plugin_status( 'woocommerce/woocommerce.php' ) ) {
198
- if ( true === $wc_status ) {
199
  $woocommerce_is_active = true;
200
  }
201
  $wc_data = get_plugin_data( WP_CONTENT_DIR . '/plugins/woocommerce/woocommerce.php' );
90
  */
91
  public static function is_valid() {
92
 
93
+ return ( self::is_valid_woocommerce()
94
+ && self::is_valid_wordpress()
95
  && self::is_valid_php()
96
  );
97
 
195
  } else {
196
 
197
  if ( $wc_status = self::get_plugin_status( 'woocommerce/woocommerce.php' ) ) {
198
+ if ( true === $wc_status ) {
199
  $woocommerce_is_active = true;
200
  }
201
  $wc_data = get_plugin_data( WP_CONTENT_DIR . '/plugins/woocommerce/woocommerce.php' );
includes/class-ss-wc-mailchimp-handler.php CHANGED
@@ -426,7 +426,7 @@ if ( ! class_exists( 'SS_WC_MailChimp_Handler' ) ) {
426
  if ( $this->sswcmc->display_opt_in() ) {
427
  do_action( 'ss_wc_mailchimp_before_opt_in_checkbox' );
428
 
429
- echo apply_filters( 'ss_wc_mailchimp_opt_in_checkbox', '<p class="form-row woocommerce-mailchimp-opt-in"><label class="checkbox" for="ss_wc_mailchimp_opt_in"><input type="checkbox" name="ss_wc_mailchimp_opt_in" id="ss_wc_mailchimp_opt_in" class="input-checkbox" value="yes"' . ($this->sswcmc->opt_in_checkbox_default_status() == 'checked' ? ' checked="checked"' : '') . '/> ' . esc_html( $this->sswcmc->opt_in_label() ) . '</label></p>' . "\n", $this->sswcmc->opt_in_checkbox_default_status(), $this->sswcmc->opt_in_label(), $this->sswcmc->opt_in_checkbox_default_status(), $this->sswcmc->opt_in_label() );
430
  // woocommerce_form_field( '2ss_wc_mailchimp_opt_in', array(
431
  // 'type' => 'checkbox',
432
  // 'class' => array('woocommerce-mailchimp-opt-in'),
426
  if ( $this->sswcmc->display_opt_in() ) {
427
  do_action( 'ss_wc_mailchimp_before_opt_in_checkbox' );
428
 
429
+ echo apply_filters( 'ss_wc_mailchimp_opt_in_checkbox', '<p class="form-row woocommerce-mailchimp-opt-in"><label class="checkbox" for="ss_wc_mailchimp_opt_in"><input type="checkbox" name="ss_wc_mailchimp_opt_in" id="ss_wc_mailchimp_opt_in" class="input-checkbox" value="yes"' . ($this->sswcmc->opt_in_checkbox_default_status() == 'checked' ? ' checked="checked"' : '') . '/> ' . $this->sswcmc->opt_in_label() . '</label></p>' . "\n", $this->sswcmc->opt_in_checkbox_default_status(), $this->sswcmc->opt_in_label(), $this->sswcmc->opt_in_checkbox_default_status(), $this->sswcmc->opt_in_label() );
430
  // woocommerce_form_field( '2ss_wc_mailchimp_opt_in', array(
431
  // 'type' => 'checkbox',
432
  // 'class' => array('woocommerce-mailchimp-opt-in'),
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.1.16';
19
 
20
  /**
21
  * Plugin singleton instance
@@ -481,7 +481,7 @@ final class SS_WC_MailChimp_Plugin {
481
 
482
  if ( ! function_exists( 'SSWCMCPRO' ) ) {
483
  $row_meta[] = array(
484
- 'support' => '<a href="' . esc_url( apply_filters( 'ss_wc_mailchimp_support_url', 'https://www.saintsystems.com/products/woocommerce-mailchimp-pro/#utm_source=wp-plugin&utm_medium=woocommerce-mailchimp&utm_campaign=plugins-upgrade-link' ) ) . '" aria-label="' . esc_attr__( 'Upgrade to WooCommerce MailChimp Pro', 'woocommerce-mailchimp' ) . '" target="_blank">' . esc_html__( 'Upgrade to Pro', 'woocommerce-mailchimp' ) . '</a>',
485
  );
486
  }
487
 
15
  *
16
  * @var string
17
  */
18
+ private static $version = '2.1.17';
19
 
20
  /**
21
  * Plugin singleton instance
481
 
482
  if ( ! function_exists( 'SSWCMCPRO' ) ) {
483
  $row_meta[] = array(
484
+ 'upgrade' => '<a href="' . esc_url( apply_filters( 'ss_wc_mailchimp_support_url', 'https://www.saintsystems.com/products/woocommerce-mailchimp-pro/#utm_source=wp-plugin&utm_medium=woocommerce-mailchimp&utm_campaign=plugins-upgrade-link' ) ) . '" aria-label="' . esc_attr__( 'Upgrade to WooCommerce MailChimp Pro', 'woocommerce-mailchimp' ) . '" target="_blank">' . esc_html__( 'Upgrade to Pro', 'woocommerce-mailchimp' ) . '</a>',
485
  );
486
  }
487
 
includes/class-ss-wc-settings-mailchimp.php CHANGED
@@ -421,7 +421,7 @@ if ( ! class_exists( 'SS_WC_Settings_MailChimp' ) ) {
421
  $settings[] = array(
422
  'id' => $this->namespace_prefixed( 'opt_in_label' ),
423
  'title' => __( 'Opt-In Field Label', 'woocommerce-mailchimp' ),
424
- 'type' => 'text',
425
  'desc' => __( 'Optional: customize the label displayed next to the opt-in checkbox.', 'woocommerce-mailchimp' ),
426
  'default' => __( 'Subscribe to our newsletter', 'woocommerce-mailchimp' ),
427
  'css' => 'min-width:350px;',
421
  $settings[] = array(
422
  'id' => $this->namespace_prefixed( 'opt_in_label' ),
423
  'title' => __( 'Opt-In Field Label', 'woocommerce-mailchimp' ),
424
+ 'type' => 'textarea',
425
  'desc' => __( 'Optional: customize the label displayed next to the opt-in checkbox.', 'woocommerce-mailchimp' ),
426
  'default' => __( 'Subscribe to our newsletter', 'woocommerce-mailchimp' ),
427
  'css' => 'min-width:350px;',
phpcs.ruleset.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="WordPress Coding Standards for Plugins">
3
+ <description>Generally-applicable sniffs for WordPress plugins</description>
4
+
5
+ <rule ref="WordPress-Core" />
6
+ <rule ref="WordPress-Docs" />
7
+
8
+ <exclude-pattern>*/node_modules/*</exclude-pattern>
9
+ <exclude-pattern>*/vendor/*</exclude-pattern>
10
+ </ruleset>
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, mailchimp
5
  Requires at least: 3.5.1
6
  Tested up to: 5.0.3
7
  WC tested up to: 3.5.4
8
- Stable tag: 2.1.16
9
  License: GPLv3
10
 
11
  Simple and flexible MailChimp integration for WooCommerce.
@@ -114,6 +114,9 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
114
 
115
  == Changelog ==
116
 
 
 
 
117
  #### 2.1.16 - February 5, 2019
118
  - Force plugin version update. Wordpress.org not registering the 2.1.15 release.
119
 
5
  Requires at least: 3.5.1
6
  Tested up to: 5.0.3
7
  WC tested up to: 3.5.4
8
+ Stable tag: 2.1.17
9
  License: GPLv3
10
 
11
  Simple and flexible MailChimp integration for WooCommerce.
114
 
115
  == Changelog ==
116
 
117
+ #### 2.1.17 - February 14, 2019
118
+ - Allow html (hyperlinks, etc.) in Opt-In Field Label.
119
+
120
  #### 2.1.16 - February 5, 2019
121
  - Force plugin version update. Wordpress.org not registering the 2.1.15 release.
122
 
woocommerce-mailchimp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Saint Systems
7
  * Author URI: https://www.saintsystems.com
8
- * Version: 2.1.16
9
  * WC tested up to: 3.5.4
10
  * Text Domain: woocommerce-mailchimp
11
  * Domain Path: languages
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Saint Systems
7
  * Author URI: https://www.saintsystems.com
8
+ * Version: 2.1.17
9
  * WC tested up to: 3.5.4
10
  * Text Domain: woocommerce-mailchimp
11
  * Domain Path: languages