Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Nov 26, 2012
2 parents d010b7b + a7e676c commit fa480bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
14 changes: 12 additions & 2 deletions mailchimp.php
Expand Up @@ -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/
*/
Expand All @@ -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');
Expand Down Expand Up @@ -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);
}
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Expand Up @@ -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 ==

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit fa480bc

Please sign in to comment.