Version Description
- Fixed bug where multiple checkbox type interest groups were returning an invalid error
- Fixed but where assets were not enqueueing properly if the plugin directory was not set to 'mailchimp'. Now supports any directory name.
Download this release
Release Info
Developer | crowdfavorite |
Plugin | MailChimp List Subscribe Form |
Version | 1.2.9 |
Comparing to | |
See all releases |
Code changes from version 1.2.8 to 1.2.9
- mailchimp.php +9 -8
- 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.
|
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');
|
@@ -1199,8 +1199,8 @@ function mailchimpSF_signup_submit() {
|
|
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();
|
1206 |
switch ($ig['form_field']) {
|
@@ -1218,8 +1218,8 @@ function mailchimpSF_signup_submit() {
|
|
1218 |
case 'checkbox':
|
1219 |
if (isset($_POST['group'][$ig['id']])) {
|
1220 |
foreach ($_POST['group'][$ig['id']] as $i => $value) {
|
|
|
1221 |
$groups .= str_replace(',', '\,', $value).',';
|
1222 |
-
|
1223 |
}
|
1224 |
$groupings = array(
|
1225 |
'id' => $ig['id'],
|
@@ -1368,13 +1368,14 @@ function mailchimpSF_where_am_i() {
|
|
1368 |
);
|
1369 |
|
1370 |
// Set defaults
|
1371 |
-
$
|
1372 |
-
$
|
|
|
1373 |
|
1374 |
// Try our hands at finding the real location
|
1375 |
foreach ($locations as $key => $loc) {
|
1376 |
-
$dir = trailingslashit($loc['dir'])
|
1377 |
-
$url = trailingslashit($loc['url'])
|
1378 |
if (is_file($dir.basename(__FILE__))) {
|
1379 |
$mscf_dir = $dir;
|
1380 |
$mscf_url = $url;
|
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.9
|
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.9');
|
29 |
|
30 |
// What's our permission (capability) threshold
|
31 |
define('MCSF_CAP_THRESHOLD', 'manage_options');
|
1199 |
|
1200 |
// Ensure we have an array
|
1201 |
$igs = !is_array($igs) ? array() : $igs;
|
|
|
1202 |
foreach ($igs as $ig) {
|
1203 |
+
$groups = '';
|
1204 |
if (get_option('mc_show_interest_groups_'.$ig['id']) == 'on') {
|
1205 |
$groupings = array();
|
1206 |
switch ($ig['form_field']) {
|
1218 |
case 'checkbox':
|
1219 |
if (isset($_POST['group'][$ig['id']])) {
|
1220 |
foreach ($_POST['group'][$ig['id']] as $i => $value) {
|
1221 |
+
// Escape
|
1222 |
$groups .= str_replace(',', '\,', $value).',';
|
|
|
1223 |
}
|
1224 |
$groupings = array(
|
1225 |
'id' => $ig['id'],
|
1368 |
);
|
1369 |
|
1370 |
// Set defaults
|
1371 |
+
$mscf_dirbase = trailingslashit(basename(dirname(__FILE__))); // Typically wp-mailchimp/ or mailchimp/
|
1372 |
+
$mscf_dir = trailingslashit(WP_PLUGIN_DIR).$mscf_dirbase;
|
1373 |
+
$mscf_url = trailingslashit(WP_PLUGIN_URL).$mscf_dirbase;
|
1374 |
|
1375 |
// Try our hands at finding the real location
|
1376 |
foreach ($locations as $key => $loc) {
|
1377 |
+
$dir = trailingslashit($loc['dir']).$mscf_dirbase;
|
1378 |
+
$url = trailingslashit($loc['url']).$mscf_dirbase;
|
1379 |
if (is_file($dir.basename(__FILE__))) {
|
1380 |
$mscf_dir = $dir;
|
1381 |
$mscf_url = $url;
|
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 |
|
@@ -134,6 +134,9 @@ Fixes major bug with "Settings" link on Plugins screen.
|
|
134 |
Added support for multiple interest groups, field formatting based on type and date picker.
|
135 |
|
136 |
== Changelog ==
|
|
|
|
|
|
|
137 |
|
138 |
= 1.2.8 =
|
139 |
* Fixed bug where entire phone numbers were only being deposited in the area code portion
|
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.9
|
7 |
|
8 |
== Description ==
|
9 |
|
134 |
Added support for multiple interest groups, field formatting based on type and date picker.
|
135 |
|
136 |
== Changelog ==
|
137 |
+
= 1.2.9 =
|
138 |
+
* Fixed bug where multiple checkbox type interest groups were returning an invalid error
|
139 |
+
* Fixed but where assets were not enqueueing properly if the plugin directory was not set to 'mailchimp'. Now supports any directory name.
|
140 |
|
141 |
= 1.2.8 =
|
142 |
* Fixed bug where entire phone numbers were only being deposited in the area code portion
|