Easy Forms for MailChimp - Version 6.4.9

Version Description

  • October 30th, 2018 =
  • Fixed PHP version compatibility issues.
  • Added a new filter to customize the placement of the WooCommerce checkbox integrations.
  • PHP Version >
Download this release

Release Info

Developer yikesitskevin
Plugin Icon 128x128 Easy Forms for MailChimp
Version 6.4.9
Comparing to
See all releases

Code changes from version 6.4.8 to 6.4.9

admin/class-yikes-inc-easy-mailchimp-extender-admin.php CHANGED
@@ -1658,7 +1658,8 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
1658
  public function generate_show_some_love_container() {
1659
  // if no active add-ons are installed,
1660
  // lets display our branding and add-on sidebar
1661
- if ( empty( get_option( 'yikes-easy-mc-active-addons', array() ) ) ) {
 
1662
 
1663
  /* On Edit Forms Page Display Upsell to Customizer */
1664
  $screen = get_current_screen();
1658
  public function generate_show_some_love_container() {
1659
  // if no active add-ons are installed,
1660
  // lets display our branding and add-on sidebar
1661
+ $options = get_option( 'yikes-easy-mc-active-addons', array() );
1662
+ if ( empty( $options ) ) {
1663
 
1664
  /* On Edit Forms Page Display Upsell to Customizer */
1665
  $screen = get_current_screen();
blocks/blocks.php CHANGED
@@ -2,13 +2,13 @@
2
  add_action( 'init', 'yikes_maybe_activate_blocks' );
3
 
4
  /**
5
- * If Gutenberg is active, activate our blocks.
6
  *
7
- * We check if Gutenberg is active by looking for the existence of the `gutenberg_init()` function.
8
  */
9
  function yikes_maybe_activate_blocks() {
10
  include ABSPATH . WPINC . '/version.php';
11
- if ( function_exists( 'gutenberg_init' ) || isset( $wp_version ) && version_compare( $wp_version, '5.0.0', '>=' ) ) {
12
  require_once YIKES_MC_PATH . 'blocks/api/api.php';
13
  require_once YIKES_MC_PATH . 'blocks/easy-forms-block/easy-forms-block.php';
14
  $yikes_easy_form_block = new YIKES_Easy_Form_Block();
2
  add_action( 'init', 'yikes_maybe_activate_blocks' );
3
 
4
  /**
5
+ * If Gutenberg is active && PHP Version is >= 5.6, activate our blocks.
6
  *
7
+ * We check if Gutenberg is active by looking for the existence of the `gutenberg_init()` function (Gutenberg plugin) or WordPress version >= 5.0.0.
8
  */
9
  function yikes_maybe_activate_blocks() {
10
  include ABSPATH . WPINC . '/version.php';
11
+ if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) && ( function_exists( 'gutenberg_init' ) || isset( $wp_version ) && version_compare( $wp_version, '5.0.0', '>=' ) ) ) {
12
  require_once YIKES_MC_PATH . 'blocks/api/api.php';
13
  require_once YIKES_MC_PATH . 'blocks/easy-forms-block/easy-forms-block.php';
14
  $yikes_easy_form_block = new YIKES_Easy_Form_Block();
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 6.4.8 - October 29th, 2018 =
4
  * Fixed a plugin conflict between Easy Forms and Contact Form 7 when exporting forms.
5
  * Fixed an issue with the bbPress integration where users were being subscribed regardless of checking the box.
1
  == Changelog ==
2
 
3
+ = 6.4.9 - October 30th, 2018 =
4
+ * Fixed PHP version compatibility issues.
5
+ * Added a new filter to customize the placement of the WooCommerce checkbox integrations.
6
+ * PHP Version >= 5.2.13 is now explicitly required and supported for this plugin. Note: The Gutenberg features in this plugin require PHP >=5.6.
7
+
8
  = 6.4.8 - October 29th, 2018 =
9
  * Fixed a plugin conflict between Easy Forms and Contact Form 7 when exporting forms.
10
  * Fixed an issue with the bbPress integration where users were being subscribed regardless of checking the box.
public/classes/checkbox-integrations.php CHANGED
@@ -118,7 +118,7 @@ class Yikes_Easy_MC_Checkbox_Integration_Class {
118
  $has_list_ids = $has_list_ids && ! in_array( '-', $checkbox_options[ $this->type ]['associated-list'], true );
119
 
120
  if ( $has_list_ids ) {
121
- $label = isset( $checkbox_options[ $this->type ]['label'] ) && ! empty( trim( $checkbox_options[ $this->type ]['label'] ) ) ? trim( $checkbox_options[ $this->type ]['label'] ) : __( 'Sign me up for your mailing list.', 'yikes-inc-easy-mailchimp-extender' );
122
  $checked = 'true' === $checkbox_options[ $this->type ]['precheck'] ? 'checked="checked"' : '';
123
  $before = apply_filters( 'yikes-mailchimp-before-checkbox-html', '' );
124
  $content = '<p id="yikes-easy-mailchimp-' . esc_attr( $this->type ) . '-checkbox" class="yikes-easy-mailchimp-' . esc_attr( $this->type ) . '-checkbox">';
118
  $has_list_ids = $has_list_ids && ! in_array( '-', $checkbox_options[ $this->type ]['associated-list'], true );
119
 
120
  if ( $has_list_ids ) {
121
+ $label = isset( $checkbox_options[ $this->type ]['label'] ) && ! empty( $checkbox_options[ $this->type ]['label'] ) ? trim( $checkbox_options[ $this->type ]['label'] ) : __( 'Sign me up for your mailing list.', 'yikes-inc-easy-mailchimp-extender' );
122
  $checked = 'true' === $checkbox_options[ $this->type ]['precheck'] ? 'checked="checked"' : '';
123
  $before = apply_filters( 'yikes-mailchimp-before-checkbox-html', '' );
124
  $content = '<p id="yikes-easy-mailchimp-' . esc_attr( $this->type ) . '-checkbox" class="yikes-easy-mailchimp-' . esc_attr( $this->type ) . '-checkbox">';
public/classes/checkbox-integrations/class.woocommerce_checkout_form-checkbox.php CHANGED
@@ -39,7 +39,8 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
39
  if ( $default_checkbox_placement ) {
40
  add_filter( 'woocommerce_checkout_fields', array( $this, 'add_checkout_field' ), 20 );
41
  } else {
42
- add_action( 'woocommerce_review_order_before_submit', array( $this, 'output_checkbox' ) );
 
43
  }
44
  }
45
 
39
  if ( $default_checkbox_placement ) {
40
  add_filter( 'woocommerce_checkout_fields', array( $this, 'add_checkout_field' ), 20 );
41
  } else {
42
+ $checkbox_location = apply_filters( 'yikes_mailchimp_wooco_integration_placement_filter', 'woocommerce_review_order_before_submit' );
43
+ add_action( $checkbox_location, array( $this, 'output_checkbox' ) );
44
  }
45
  }
46
 
readme.txt CHANGED
@@ -4,7 +4,8 @@ Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=dona
4
  Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 6.4.8
 
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -171,15 +172,7 @@ For information and code examples on how to implement the hooks and filters prov
171
 
172
  == Changelog ==
173
 
174
- = 6.4.8 - October 29th, 2018 =
175
- * Fixed a plugin conflict between Easy Forms and Contact Form 7 when exporting forms.
176
- * Fixed an issue with the bbPress integration where users were being subscribed regardless of checking the box.
177
- * Fixed an issue with datepickers conflicting when the same form (with date pickers) is on the same page twice.
178
- * Inline forms will now stack when the screen size is less than 650px.
179
- * Cleaned/Standardized/Code Sniffed the checkbox integration classes.
180
- * Removed checkbox integration CSS file.
181
- * Moved the WooCommerce integration checkbox's placement on the checkout page (it now uses the filter `woocommerce_review_order_before_submit` instead of `woocommerce_checkout_after_order_review`).
182
- * Added/Fixed several filters: `yikes_mailchimp_checkbox_integration_checkbox_html`, `yikes-mailchimp-filter-before-submission-$form_id`, `yikes-mailchimp-redirection`, `yikes-mailchimp-redirect-new-window`, `yikes_mailchimp_inline_stack_fields_width`, `yikes_mailchimp_checkbox_integration_checkbox_label`
183
- * Removed "Vote that the plugin works" callout.
184
- * Fixed & reorganized MailChimp Gutenberg block.
185
- * Added new tags for the update profile email: `[email]`, `[subscriber_id]`, and `[form_name]`.
4
  Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Requires PHP: 5.2.13
8
+ Stable tag: 6.4.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
172
 
173
  == Changelog ==
174
 
175
+ = 6.4.9 - October 30th, 2018 =
176
+ * Fixed PHP version compatibility issues.
177
+ * Added a new filter to customize the placement of the WooCommerce checkbox integrations.
178
+ * PHP Version >= 5.2.13 is now explicitly required and supported for this plugin. Note: The Gutenberg features in this plugin require PHP >=5.6.
 
 
 
 
 
 
 
 
yikes-inc-easy-mailchimp-extender.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Forms for MailChimp
4
  * Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
5
  * Description: The ultimate MailChimp WordPress plugin. Easily build <strong>unlimited forms for your MailChimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">MailChimp API key</a>.
6
- * Version: 6.4.8
7
  * Author: YIKES, Inc.
8
  * Author URI: https://www.yikesplugins.com/
9
  * License: GPL-3.0+
@@ -43,7 +43,7 @@ if ( ! defined( 'WPINC' ) ) {
43
  * @since 6.1.3
44
  */
45
  if ( ! defined( 'YIKES_MC_VERSION' ) ) {
46
- define( 'YIKES_MC_VERSION' , '6.4.8' );
47
  }
48
 
49
  /**
3
  * Plugin Name: Easy Forms for MailChimp
4
  * Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
5
  * Description: The ultimate MailChimp WordPress plugin. Easily build <strong>unlimited forms for your MailChimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">MailChimp API key</a>.
6
+ * Version: 6.4.9
7
  * Author: YIKES, Inc.
8
  * Author URI: https://www.yikesplugins.com/
9
  * License: GPL-3.0+
43
  * @since 6.1.3
44
  */
45
  if ( ! defined( 'YIKES_MC_VERSION' ) ) {
46
+ define( 'YIKES_MC_VERSION' , '6.4.9' );
47
  }
48
 
49
  /**