Version Description
- May 21st, 2018 =
- Fixed some issues with the readme
- Fixed an issue with required radio button fields that had no default value; they will now be required.
- Fixed a PHP warning related to interest groups in the form builder.
- Fixed a PHP warning related to error messages.
- Fixed a PHP notice on the integration checkbox page.
- Added a new action when a form is duplicated:
'yikes-mailchimp-after-duplicating-form'
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Easy Forms for MailChimp |
Version | 6.4.3 |
Comparing to | |
See all releases |
Code changes from version 6.4.2 to 6.4.3
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
@@ -2188,7 +2188,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2188 |
</td>
|
2189 |
<td>
|
2190 |
<?php
|
2191 |
-
$field['default_choice'] = isset( $field['default_choice'] ) ? $field['default_choice'] :
|
2192 |
|
2193 |
$default_shown = false;
|
2194 |
|
@@ -2209,7 +2209,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2209 |
|
2210 |
case 'checkbox':
|
2211 |
case 'hidden':
|
2212 |
-
if ( in_array( $id,
|
2213 |
$checked = checked( true, true, false );
|
2214 |
}
|
2215 |
break;
|
@@ -2639,12 +2639,22 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2639 |
$form_data = $this->form_interface->get_form( $post_id_to_clone );
|
2640 |
|
2641 |
// Update some of the data before duplication
|
2642 |
-
$form_data['form_name'] .= ' - Copy
|
2643 |
$form_data['impressions'] = $form_data['submissions'] = 0;
|
2644 |
|
2645 |
// Create the new form, and handle the result.
|
2646 |
$result = $this->form_interface->create_form( $form_data );
|
2647 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2648 |
if ( false === $result ) {
|
2649 |
// redirect the user to the manage forms page, display error
|
2650 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp&duplicated-form=false' ) ) );
|
2188 |
</td>
|
2189 |
<td>
|
2190 |
<?php
|
2191 |
+
$field['default_choice'] = isset( $field['default_choice'] ) ? $field['default_choice'] : '';
|
2192 |
|
2193 |
$default_shown = false;
|
2194 |
|
2209 |
|
2210 |
case 'checkbox':
|
2211 |
case 'hidden':
|
2212 |
+
if ( is_array( $field['default_choice'] ) && in_array( $id, $field['default_choice'] ) ) {
|
2213 |
$checked = checked( true, true, false );
|
2214 |
}
|
2215 |
break;
|
2639 |
$form_data = $this->form_interface->get_form( $post_id_to_clone );
|
2640 |
|
2641 |
// Update some of the data before duplication
|
2642 |
+
$form_data['form_name'] .= ' - Copy';
|
2643 |
$form_data['impressions'] = $form_data['submissions'] = 0;
|
2644 |
|
2645 |
// Create the new form, and handle the result.
|
2646 |
$result = $this->form_interface->create_form( $form_data );
|
2647 |
|
2648 |
+
/**
|
2649 |
+
* `yikes-mailchimp-after-duplicating-form`
|
2650 |
+
*
|
2651 |
+
* @param $post_id_to_clone | int | ID of the original form
|
2652 |
+
* @param $result | mixed | ID of the new form OR false if the operation failed
|
2653 |
+
* @param $form_data | array | Array of the form data
|
2654 |
+
*
|
2655 |
+
*/
|
2656 |
+
do_action( 'yikes-mailchimp-after-duplicating-form', $post_id_to_clone, $result, $form_data );
|
2657 |
+
|
2658 |
if ( false === $result ) {
|
2659 |
// redirect the user to the manage forms page, display error
|
2660 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp&duplicated-form=false' ) ) );
|
changelog.txt
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 6.4.2 - May 9th, 2018 =
|
4 |
* Added a new API function to create notes on a subscriber's profile
|
5 |
* Added no default options for radio buttons and dropdowns (both merge fields and interest groups).
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 6.4.3 - May 21st, 2018 =
|
4 |
+
* Fixed some issues with the readme
|
5 |
+
* Fixed an issue with required radio button fields that had no default value; they will now be required.
|
6 |
+
* Fixed a PHP warning related to interest groups in the form builder.
|
7 |
+
* Fixed a PHP warning related to error messages.
|
8 |
+
* Fixed a PHP notice on the integration checkbox page.
|
9 |
+
* Added a new action when a form is duplicated: `'yikes-mailchimp-after-duplicating-form'`
|
10 |
+
|
11 |
= 6.4.2 - May 9th, 2018 =
|
12 |
* Added a new API function to create notes on a subscriber's profile
|
13 |
* Added no default options for radio buttons and dropdowns (both merge fields and interest groups).
|
public/classes/process/class.process_form_submission_handler.php
CHANGED
@@ -1287,7 +1287,8 @@ class Yikes_Inc_Easy_MailChimp_Extender_Process_Submission_Handler {
|
|
1287 |
|
1288 |
case 'general-error':
|
1289 |
|
1290 |
-
$original_response_text
|
|
|
1291 |
|
1292 |
if ( isset( $this->error_messages['general-error'] ) && ! empty( $this->error_messages['general-error'] ) ) {
|
1293 |
$user_defined_response_text = $this->error_messages['general-error'];
|
1287 |
|
1288 |
case 'general-error':
|
1289 |
|
1290 |
+
$original_response_text = $response_text;
|
1291 |
+
$user_defined_response_text = '';
|
1292 |
|
1293 |
if ( isset( $this->error_messages['general-error'] ) && ! empty( $this->error_messages['general-error'] ) ) {
|
1294 |
$user_defined_response_text = $this->error_messages['general-error'];
|
public/partials/shortcodes/process_form_shortcode.php
CHANGED
@@ -974,12 +974,13 @@ function process_mailchimp_shortcode( $atts ) {
|
|
974 |
|
975 |
foreach( $choices as $choice ) {
|
976 |
?>
|
977 |
-
<label for="<?php echo esc_attr( $field['merge'] ) . '-' . $i; ?>" class="yikes-easy-mc-checkbox-label <?php echo implode( ' ' , $custom_classes ); if( $i === $count ) { ?> last-selection<?php } ?>"
|
978 |
<input
|
979 |
type="<?php echo esc_attr( $field['type'] ); ?>"
|
980 |
name="<?php echo esc_attr( $field['merge'] ); ?>"
|
981 |
id="<?php echo esc_attr( $field['merge'] . '-' . $i ); ?>"
|
982 |
-
<?php if ( $no_default !== true && in_array( $x, $default_choice ) || in_array( $choice, $default_choice, true ) ) { echo 'checked="checked"'; } ?>
|
|
|
983 |
value="<?php echo esc_attr( $choice ); ?>">
|
984 |
<span class="<?php echo esc_attr( $field['merge'] ). '-label'; ?>"><?php echo stripslashes( $choice ); ?></span>
|
985 |
</label>
|
974 |
|
975 |
foreach( $choices as $choice ) {
|
976 |
?>
|
977 |
+
<label for="<?php echo esc_attr( $field['merge'] ) . '-' . $i; ?>" class="yikes-easy-mc-checkbox-label <?php echo implode( ' ' , $custom_classes ); if( $i === $count ) { ?> last-selection<?php } ?>">
|
978 |
<input
|
979 |
type="<?php echo esc_attr( $field['type'] ); ?>"
|
980 |
name="<?php echo esc_attr( $field['merge'] ); ?>"
|
981 |
id="<?php echo esc_attr( $field['merge'] . '-' . $i ); ?>"
|
982 |
+
<?php if ( $no_default !== true && in_array( $x, $default_choice ) || in_array( $choice, $default_choice, true ) ) { echo 'checked="checked"'; } ?>
|
983 |
+
<?php echo $field_array['required']; ?>
|
984 |
value="<?php echo esc_attr( $choice ); ?>">
|
985 |
<span class="<?php echo esc_attr( $field['merge'] ). '-label'; ?>"><?php echo stripslashes( $choice ); ?></span>
|
986 |
</label>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: yikesinc, eherman24, liljimmi, JPry, yikesitskevin
|
|
3 |
Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
|
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.
|
7 |
-
Stable tag: 6.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -14,7 +14,7 @@ The ultimate MailChimp WordPress plugin. Easily build unlimited forms for your M
|
|
14 |
|
15 |
Easy Forms for MailChimp allows you to add **unlimited** MailChimp sign up forms to your WordPress site. You can add forms to posts, pages, sidebars and other widgetized areas. Your MailChimp API Key connects your site to your account and pulls in all of your list information. List statistics can be viewed right from your dashboard.
|
16 |
|
17 |
-
> Note: For GDPR compliance, use our free add-on [
|
18 |
|
19 |
You can also extend the plugin's functionality with our [free and paid add-ons](https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp).
|
20 |
|
@@ -93,7 +93,6 @@ Yes, you must have a MailChimp account and at least 1 list set up in order to us
|
|
93 |
Our plugin uses an API Key to allow your site to communicate with your account. After you enter your API key into the plugin settings your site is connected to your account and ready to make forms.
|
94 |
|
95 |
= How do I create a MailChimp API key? =
|
96 |
-
For GDPR compliance, use our free add-on [EU Opt-In Compliance for MailChimp](https://wordpress.org/plugins/eu-opt-in-compliance-for-mailchimp/).
|
97 |
|
98 |
Step-by-step instructions:
|
99 |
|
@@ -105,7 +104,7 @@ Step-by-step instructions:
|
|
105 |
Copy your API key so you can paste it into the plugin General Settings.
|
106 |
|
107 |
= How do I make my forms GDPR compliant? =
|
108 |
-
|
109 |
|
110 |
= How do I change the submit button text? =
|
111 |
The submit button text can be customized to use any text you like. This is done via the shortcode. Please visit our How-to article [How do I change the submit button text](https://yikesplugins.com/support/knowledge-base/how-do-i-change-the-submit-button-text/) for step-by-step instructions.
|
@@ -172,10 +171,10 @@ For information and code examples on how to implement the hooks and filters prov
|
|
172 |
|
173 |
== Changelog ==
|
174 |
|
175 |
-
= 6.4.
|
176 |
-
*
|
177 |
-
*
|
178 |
-
*
|
179 |
-
*
|
180 |
-
* Fixed
|
181 |
-
*
|
3 |
Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
|
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.6
|
7 |
+
Stable tag: 6.4.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
14 |
|
15 |
Easy Forms for MailChimp allows you to add **unlimited** MailChimp sign up forms to your WordPress site. You can add forms to posts, pages, sidebars and other widgetized areas. Your MailChimp API Key connects your site to your account and pulls in all of your list information. List statistics can be viewed right from your dashboard.
|
16 |
|
17 |
+
> Note: For assistance with GDPR compliance, use our free add-on [GDPR Compliance for MailChimp](https://wordpress.org/plugins/eu-opt-in-compliance-for-mailchimp/).
|
18 |
|
19 |
You can also extend the plugin's functionality with our [free and paid add-ons](https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp).
|
20 |
|
93 |
Our plugin uses an API Key to allow your site to communicate with your account. After you enter your API key into the plugin settings your site is connected to your account and ready to make forms.
|
94 |
|
95 |
= How do I create a MailChimp API key? =
|
|
|
96 |
|
97 |
Step-by-step instructions:
|
98 |
|
104 |
Copy your API key so you can paste it into the plugin General Settings.
|
105 |
|
106 |
= How do I make my forms GDPR compliant? =
|
107 |
+
For assistance with GDPR compliance, use our free add-on [EU Opt-In Compliance for MailChimp](https://wordpress.org/plugins/eu-opt-in-compliance-for-mailchimp/).
|
108 |
|
109 |
= How do I change the submit button text? =
|
110 |
The submit button text can be customized to use any text you like. This is done via the shortcode. Please visit our How-to article [How do I change the submit button text](https://yikesplugins.com/support/knowledge-base/how-do-i-change-the-submit-button-text/) for step-by-step instructions.
|
171 |
|
172 |
== Changelog ==
|
173 |
|
174 |
+
= 6.4.3 - May 21st, 2018 =
|
175 |
+
* Fixed some issues with the readme
|
176 |
+
* Fixed an issue with required radio button fields that had no default value; they will now be required.
|
177 |
+
* Fixed a PHP warning related to interest groups in the form builder.
|
178 |
+
* Fixed a PHP warning related to error messages.
|
179 |
+
* Fixed a PHP notice on the integration checkbox page.
|
180 |
+
* Added a new action when a form is duplicated: `'yikes-mailchimp-after-duplicating-form'`
|
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.
|
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.
|
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.3
|
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.3' );
|
47 |
}
|
48 |
|
49 |
/**
|