MailChimp List Subscribe Form - Version 1.2.13

Version Description

  • Fixed bug preventing address fields from submitting correctly.
Download this release

Release Info

Developer crowdfavorite
Plugin Icon wp plugin MailChimp List Subscribe Form
Version 1.2.13
Comparing to
See all releases

Code changes from version 1.2.12 to 1.2.13

Files changed (2) hide show
  1. mailchimp.php +12 -2
  2. readme.txt +4 -1
mailchimp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp
4
  Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
5
  Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
6
- Version: 1.2.12
7
  Author: MailChimp and Crowd Favorite
8
  Author URI: http://mailchimp.com/api/
9
  */
@@ -25,7 +25,7 @@ Author URI: http://mailchimp.com/api/
25
  */
26
 
27
  // Version constant for easy CSS refreshes
28
- define('MCSF_VER', '1.2.10');
29
 
30
  // What's our permission (capability) threshold
31
  define('MCSF_CAP_THRESHOLD', 'manage_options');
@@ -1175,6 +1175,16 @@ function mailchimpSF_signup_submit() {
1175
  if (is_array($opt_val) && isset($opt_val['area'])) {
1176
  $opt_val = implode('-', $opt_val);
1177
  }
 
 
 
 
 
 
 
 
 
 
1178
  else if (is_array($opt_val)) {
1179
  $opt_val = implode($opt_val);
1180
  }
3
  Plugin Name: MailChimp
4
  Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
5
  Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
6
+ Version: 1.2.13
7
  Author: MailChimp and Crowd Favorite
8
  Author URI: http://mailchimp.com/api/
9
  */
25
  */
26
 
27
  // Version constant for easy CSS refreshes
28
+ define('MCSF_VER', '1.2.13');
29
 
30
  // What's our permission (capability) threshold
31
  define('MCSF_CAP_THRESHOLD', 'manage_options');
1175
  if (is_array($opt_val) && isset($opt_val['area'])) {
1176
  $opt_val = implode('-', $opt_val);
1177
  }
1178
+ else if (is_array($opt_val) && $var['field_type'] == 'address') {
1179
+ if ($var['req'] == 'Y') {
1180
+ if (empty($opt_val['addr1']) || empty($opt_val['city'])) {
1181
+ $errs[] = sprintf(__("You must fill in %s.", 'mailchimp_i18n'), esc_html($var['name']));
1182
+ $success = false;
1183
+ }
1184
+ }
1185
+ $merge[$var['tag']] = $opt_val;
1186
+ continue;
1187
+ }
1188
  else if (is_array($opt_val)) {
1189
  $opt_val = implode($opt_val);
1190
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mc_jesse, crowdfavorite
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.8
5
  Tested up to: 3.4.2
6
- Stable tag: 1.2.12
7
 
8
  == Description ==
9
 
@@ -141,6 +141,9 @@ Added support for multiple interest groups, field formatting based on type and d
141
 
142
  == Changelog ==
143
 
 
 
 
144
  = 1.2.12 =
145
  * Update spanish language files (es_ES and es_MX)
146
 
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.8
5
  Tested up to: 3.4.2
6
+ Stable tag: 1.2.13
7
 
8
  == Description ==
9
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.2.13 =
145
+ * Fixed bug preventing address fields from submitting correctly.
146
+
147
  = 1.2.12 =
148
  * Update spanish language files (es_ES and es_MX)
149