Version Description
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Easy Forms for MailChimp |
Version | 6.3.21 |
Comparing to | |
See all releases |
Code changes from version 6.3.20 to 6.3.21
public/classes/checkbox-integrations/class.comment_form-checkbox.php
CHANGED
@@ -61,22 +61,27 @@
|
|
61 |
* @since 6.0.0
|
62 |
**/
|
63 |
public function subscribe_from_comment( $comment_id , $comment_approved ) {
|
|
|
64 |
// was sign-up checkbox checked?
|
65 |
if ( $this->was_checkbox_checked( $this->type ) === false ) {
|
66 |
return false;
|
67 |
}
|
|
|
68 |
// is this a spam comment?
|
69 |
-
if ( $comment_approved ===
|
70 |
return false;
|
71 |
}
|
72 |
-
|
|
|
73 |
$comment_data = get_comment( $comment_id );
|
74 |
-
|
|
|
75 |
$merge_vars = array(
|
76 |
-
'
|
77 |
'OPTIN_IP' => $comment_data->comment_author_IP,
|
78 |
);
|
79 |
-
|
|
|
80 |
$this->subscribe_user_integration( sanitize_email( $comment_data->comment_author_email ) , $this->type , $merge_vars );
|
81 |
}
|
82 |
|
61 |
* @since 6.0.0
|
62 |
**/
|
63 |
public function subscribe_from_comment( $comment_id , $comment_approved ) {
|
64 |
+
|
65 |
// was sign-up checkbox checked?
|
66 |
if ( $this->was_checkbox_checked( $this->type ) === false ) {
|
67 |
return false;
|
68 |
}
|
69 |
+
|
70 |
// is this a spam comment?
|
71 |
+
if ( $comment_approved === 0 ) {
|
72 |
return false;
|
73 |
}
|
74 |
+
|
75 |
+
// Fetch comment data
|
76 |
$comment_data = get_comment( $comment_id );
|
77 |
+
|
78 |
+
// Create merge variables based on comment data
|
79 |
$merge_vars = array(
|
80 |
+
'FNAME' => $comment_data->comment_author,
|
81 |
'OPTIN_IP' => $comment_data->comment_author_IP,
|
82 |
);
|
83 |
+
|
84 |
+
// Subscribe the user
|
85 |
$this->subscribe_user_integration( sanitize_email( $comment_data->comment_author_email ) , $this->type , $merge_vars );
|
86 |
}
|
87 |
|
public/partials/shortcodes/process_form_shortcode.php
CHANGED
@@ -395,7 +395,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
395 |
|
396 |
// render the form!
|
397 |
?>
|
398 |
-
<form id="<?php echo sanitize_title( $form_data['form_name'] ); ?>-<?php echo $form_id; ?>" class="yikes-easy-mc-form yikes-easy-mc-form-<?php echo $form_id . ' '; if ( $form_inline ) { echo 'yikes-mailchimp-form-inline '; } echo ' ' . apply_filters( 'yikes-mailchimp-form-class', $form_classes, $form_id ); if( !empty( $_POST ) && $form_submitted == 1 && $form_data['submission_settings']['hide_form_post_signup'] == 1 ) { echo ' yikes-easy-mc-display-none'; } ?>"
|
399 |
|
400 |
<?php
|
401 |
// Set a default constant for hidden fields
|
395 |
|
396 |
// render the form!
|
397 |
?>
|
398 |
+
<form id="<?php echo sanitize_title( $form_data['form_name'] ); ?>-<?php echo $form_id; ?>" class="yikes-easy-mc-form yikes-easy-mc-form-<?php echo $form_id . ' '; if ( $form_inline ) { echo 'yikes-mailchimp-form-inline '; } echo ' ' . apply_filters( 'yikes-mailchimp-form-class', $form_classes, $form_id ); if( !empty( $_POST ) && $form_submitted == 1 && $form_data['submission_settings']['hide_form_post_signup'] == 1 ) { echo ' yikes-easy-mc-display-none'; } ?>" method="POST" data-attr-form-id="<?php echo esc_attr( $form_id ); ?>">
|
399 |
|
400 |
<?php
|
401 |
// Set a default constant for hidden fields
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.8
|
7 |
-
Stable tag: 6.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -268,6 +268,10 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
268 |
|
269 |
== Changelog ==
|
270 |
|
|
|
|
|
|
|
|
|
271 |
= Easy Forms for MailChimp 6.3.20 - May 31st, 2017 =
|
272 |
* Added a filter - `yikes-mailchimp-integration-is-user-subscribed` - for the integration checkbox. You can override whether the checkbox will display for already subscribed users (by default, the checkbox will not display).
|
273 |
* Updated the way we're logging errors for the homepage dashboard widgets - an error should no longer break your dashboard!
|
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.8
|
7 |
+
Stable tag: 6.3.21
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
268 |
|
269 |
== Changelog ==
|
270 |
|
271 |
+
= Easy Forms for MailChimp 6.3.21 - June 22nd, 2017 =
|
272 |
+
* Cleaned up some HTML on the form
|
273 |
+
* Fixed an issue with comment integration subscriptions - the commenter's name will now populate the First Name field in your MailChimp list.
|
274 |
+
|
275 |
= Easy Forms for MailChimp 6.3.20 - May 31st, 2017 =
|
276 |
* Added a filter - `yikes-mailchimp-integration-is-user-subscribed` - for the integration checkbox. You can override whether the checkbox will display for already subscribed users (by default, the checkbox will not display).
|
277 |
* Updated the way we're logging errors for the homepage dashboard widgets - an error should no longer break your dashboard!
|
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.3.
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|
@@ -31,6 +31,7 @@
|
|
31 |
*
|
32 |
*/
|
33 |
|
|
|
34 |
// If accessed directly, abort
|
35 |
if ( ! defined( 'WPINC' ) ) {
|
36 |
die;
|
@@ -42,7 +43,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
42 |
* @since 6.1.3
|
43 |
*/
|
44 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
45 |
-
define( 'YIKES_MC_VERSION' , '6.3.
|
46 |
}
|
47 |
|
48 |
/**
|
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.3.21
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|
31 |
*
|
32 |
*/
|
33 |
|
34 |
+
|
35 |
// If accessed directly, abort
|
36 |
if ( ! defined( 'WPINC' ) ) {
|
37 |
die;
|
43 |
* @since 6.1.3
|
44 |
*/
|
45 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
46 |
+
define( 'YIKES_MC_VERSION' , '6.3.21' );
|
47 |
}
|
48 |
|
49 |
/**
|