Permalink
Browse files

Updated to 1.2.13, fixing email address submission issues

  • Loading branch information...
1 parent d010b7b commit a7e676cae5e7f0eb4223ebc31733299d80865ac7 Steven Mathias committed with Crowd Favorite Nov 14, 2012
Showing with 16 additions and 3 deletions.
  1. +12 −2 mailchimp.php
  2. +4 −1 readme.txt
View
@@ -3,7 +3,7 @@
Plugin Name: MailChimp
Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
-Version: 1.2.12
+Version: 1.2.13
Author: MailChimp and Crowd Favorite
Author URI: http://mailchimp.com/api/
*/
@@ -25,7 +25,7 @@
*/
// Version constant for easy CSS refreshes
-define('MCSF_VER', '1.2.10');
+define('MCSF_VER', '1.2.13');
// What's our permission (capability) threshold
define('MCSF_CAP_THRESHOLD', 'manage_options');
@@ -1175,6 +1175,16 @@ function mailchimpSF_signup_submit() {
if (is_array($opt_val) && isset($opt_val['area'])) {
$opt_val = implode('-', $opt_val);
}
+ else if (is_array($opt_val) && $var['field_type'] == 'address') {
+ if ($var['req'] == 'Y') {
+ if (empty($opt_val['addr1']) || empty($opt_val['city'])) {
+ $errs[] = sprintf(__("You must fill in %s.", 'mailchimp_i18n'), esc_html($var['name']));
+ $success = false;
+ }
+ }
+ $merge[$var['tag']] = $opt_val;
+ continue;
+ }
else if (is_array($opt_val)) {
$opt_val = implode($opt_val);
}
View
@@ -3,7 +3,7 @@ Contributors: mc_jesse, crowdfavorite
Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
Requires at least: 2.8
Tested up to: 3.4.2
-Stable tag: 1.2.12
+Stable tag: 1.2.13
== Description ==
@@ -141,6 +141,9 @@ Added support for multiple interest groups, field formatting based on type and d
== Changelog ==
+= 1.2.13 =
+* Fixed bug preventing address fields from submitting correctly.
+
= 1.2.12 =
* Update spanish language files (es_ES and es_MX)

0 comments on commit a7e676c

Please sign in to comment.