Version Description
- Fixed bug where entire phone numbers were only being deposited in the area code portion
Download this release
Release Info
Developer | crowdfavorite |
Plugin | MailChimp List Subscribe Form |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
- mailchimp.php +10 -8
- mailchimp_widget.php +2 -0
- readme.txt +13 -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.
|
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.
|
29 |
|
30 |
// What's our permission (capability) threshold
|
31 |
define('MCSF_CAP_THRESHOLD', 'manage_options');
|
@@ -1172,8 +1172,11 @@ function mailchimpSF_signup_submit() {
|
|
1172 |
|
1173 |
$opt_val = isset($_POST[$opt]) ? $_POST[$opt] : '';
|
1174 |
|
1175 |
-
if (is_array($opt_val)) {
|
1176 |
-
$opt_val = implode('', $opt_val);
|
|
|
|
|
|
|
1177 |
}
|
1178 |
|
1179 |
if ($var['req'] == 'Y' && trim($opt_val) == '') {
|
@@ -1196,7 +1199,7 @@ function mailchimpSF_signup_submit() {
|
|
1196 |
|
1197 |
// Ensure we have an array
|
1198 |
$igs = !is_array($igs) ? array() : $igs;
|
1199 |
-
|
1200 |
foreach ($igs as $ig) {
|
1201 |
if (get_option('mc_show_interest_groups_'.$ig['id']) == 'on') {
|
1202 |
$groupings = array();
|
@@ -1240,7 +1243,6 @@ function mailchimpSF_signup_submit() {
|
|
1240 |
// If we're good
|
1241 |
if ($success) {
|
1242 |
// Clear out empty merge vars
|
1243 |
-
|
1244 |
foreach ($merge as $k => $v) {
|
1245 |
if (is_array($v) && empty($v)) {
|
1246 |
unset($merge[$k]);
|
@@ -1268,9 +1270,9 @@ function mailchimpSF_signup_submit() {
|
|
1268 |
if ($merge_key !== 'GROUPINGS') {
|
1269 |
switch ($mv_tag_keys[$merge_key]['field_type']) {
|
1270 |
case 'phone':
|
1271 |
-
$phone =
|
1272 |
if (!empty($phone)) {
|
1273 |
-
if (preg_match('/[
|
1274 |
$errs[] = sprintf(__("%s must consist of only numbers", 'mailchimp_i18n'), esc_html($mv_tag_keys[$merge_key]['name']));
|
1275 |
$success = false;
|
1276 |
}
|
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.8
|
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.8');
|
29 |
|
30 |
// What's our permission (capability) threshold
|
31 |
define('MCSF_CAP_THRESHOLD', 'manage_options');
|
1172 |
|
1173 |
$opt_val = isset($_POST[$opt]) ? $_POST[$opt] : '';
|
1174 |
|
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 |
}
|
1181 |
|
1182 |
if ($var['req'] == 'Y' && trim($opt_val) == '') {
|
1199 |
|
1200 |
// Ensure we have an array
|
1201 |
$igs = !is_array($igs) ? array() : $igs;
|
1202 |
+
$groups = '';
|
1203 |
foreach ($igs as $ig) {
|
1204 |
if (get_option('mc_show_interest_groups_'.$ig['id']) == 'on') {
|
1205 |
$groupings = array();
|
1243 |
// If we're good
|
1244 |
if ($success) {
|
1245 |
// Clear out empty merge vars
|
|
|
1246 |
foreach ($merge as $k => $v) {
|
1247 |
if (is_array($v) && empty($v)) {
|
1248 |
unset($merge[$k]);
|
1270 |
if ($merge_key !== 'GROUPINGS') {
|
1271 |
switch ($mv_tag_keys[$merge_key]['field_type']) {
|
1272 |
case 'phone':
|
1273 |
+
$phone = $merge_value;
|
1274 |
if (!empty($phone)) {
|
1275 |
+
if (!preg_match('/[0-9]{0,3}-[0-9]{0,3}-[0-9]{0,4}/', $phone)) {
|
1276 |
$errs[] = sprintf(__("%s must consist of only numbers", 'mailchimp_i18n'), esc_html($mv_tag_keys[$merge_key]['name']));
|
1277 |
$success = false;
|
1278 |
}
|
mailchimp_widget.php
CHANGED
@@ -233,11 +233,13 @@ function mailchimp_interest_group_field($ig) {
|
|
233 |
</select>';
|
234 |
break;
|
235 |
case 'hidden':
|
|
|
236 |
foreach($ig['groups'] as $interest) {
|
237 |
$interest = $interest['name'];
|
238 |
$html .= '
|
239 |
<input type="checkbox" name="'.esc_attr($set_name.'['.$i.']').'" id="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest" value="'.esc_attr($interest).'" />
|
240 |
<label for="'. esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest_label">'.esc_html($interest).'</label>';
|
|
|
241 |
}
|
242 |
break;
|
243 |
}
|
233 |
</select>';
|
234 |
break;
|
235 |
case 'hidden':
|
236 |
+
$i = 1;
|
237 |
foreach($ig['groups'] as $interest) {
|
238 |
$interest = $interest['name'];
|
239 |
$html .= '
|
240 |
<input type="checkbox" name="'.esc_attr($set_name.'['.$i.']').'" id="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest" value="'.esc_attr($interest).'" />
|
241 |
<label for="'. esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest_label">'.esc_html($interest).'</label>';
|
242 |
+
$i++;
|
243 |
}
|
244 |
break;
|
245 |
}
|
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.3.1
|
6 |
-
Stable tag: 1.2.
|
7 |
|
8 |
== Description ==
|
9 |
|
@@ -124,6 +124,9 @@ Maybe! Look in the /po/ directory in our plugin package and see if your language
|
|
124 |
|
125 |
== Upgrade Notice ==
|
126 |
|
|
|
|
|
|
|
127 |
= 1.2.6 =
|
128 |
Fixes major bug with "Settings" link on Plugins screen.
|
129 |
|
@@ -132,6 +135,15 @@ Added support for multiple interest groups, field formatting based on type and d
|
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
= 1.2.6 =
|
136 |
* Fixed bug with "Settings" link appearing on all plugins (props Jason Lane)
|
137 |
* Resolved issue with unnecessary calls to the MailChimp API during upgrade check
|
3 |
Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.3.1
|
6 |
+
Stable tag: 1.2.8
|
7 |
|
8 |
== Description ==
|
9 |
|
124 |
|
125 |
== Upgrade Notice ==
|
126 |
|
127 |
+
= 1.2.8=
|
128 |
+
Fixes bug where entire phone numbers were only being deposited in the area code portion
|
129 |
+
|
130 |
= 1.2.6 =
|
131 |
Fixes major bug with "Settings" link on Plugins screen.
|
132 |
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 1.2.8 =
|
139 |
+
* Fixed bug where entire phone numbers were only being deposited in the area code portion
|
140 |
+
|
141 |
+
= 1.2.7 =
|
142 |
+
* CSS should now always load correctly on the front end
|
143 |
+
* Adding Hebrew and Romanian language support
|
144 |
+
* Updating translation contribution instructions
|
145 |
+
* Tested version is now 3.3.1
|
146 |
+
|
147 |
= 1.2.6 =
|
148 |
* Fixed bug with "Settings" link appearing on all plugins (props Jason Lane)
|
149 |
* Resolved issue with unnecessary calls to the MailChimp API during upgrade check
|