MailChimp for WordPress - Version 1.4.1

Version Description

Fixed grouping information not being sent to MailChimp when using sign-up forms.

Download this release

Release Info

Developer DvanKooten
Plugin Icon 128x128 MailChimp for WordPress
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4 to 1.4.1

includes/MC4WP_Lite_API.php CHANGED
@@ -97,7 +97,7 @@ class MC4WP_Lite_API {
97
  if(empty($this->api_key)) { return false; }
98
 
99
  $data['apikey'] = $this->api_key;
100
- $url = add_query_arg($data, $this->api_url . $method . '.json');
101
 
102
  $response = wp_remote_post($url, array(
103
  'body' => $data,
97
  if(empty($this->api_key)) { return false; }
98
 
99
  $data['apikey'] = $this->api_key;
100
+ $url = $this->api_url . $method . '.json';
101
 
102
  $response = wp_remote_post($url, array(
103
  'body' => $data,
includes/MC4WP_Lite_Form.php CHANGED
@@ -69,6 +69,7 @@ class MC4WP_Lite_Form {
69
  // replace special values
70
  $form_markup = str_replace( array( '%N%', '{n}' ), $this->form_instance_number, $form_markup );
71
  $form_markup = mc4wp_replace_variables( $form_markup, array_values( $opts['lists'] ) );
 
72
  $content .= $form_markup;
73
 
74
  // hidden fields
@@ -168,8 +169,8 @@ class MC4WP_Lite_Form {
168
  $grouping['name'] = $grouping_id_or_name;
169
  }
170
 
171
- if ( is_array( $groups ) ) {
172
- $grouping['groups'] = implode( ',', $groups );
173
  } else {
174
  $grouping['groups'] = $groups;
175
  }
69
  // replace special values
70
  $form_markup = str_replace( array( '%N%', '{n}' ), $this->form_instance_number, $form_markup );
71
  $form_markup = mc4wp_replace_variables( $form_markup, array_values( $opts['lists'] ) );
72
+ $form_markup = apply_filters('mc4wp_form_content', $form_markup);
73
  $content .= $form_markup;
74
 
75
  // hidden fields
169
  $grouping['name'] = $grouping_id_or_name;
170
  }
171
 
172
+ if ( !is_array( $groups ) ) {
173
+ $grouping['groups'] = explode( ',', $groups );
174
  } else {
175
  $grouping['groups'] = $groups;
176
  }
mailchimp-for-wp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp for WordPress Lite
4
  Plugin URI: http://dannyvankooten.com/mailchimp-for-wordpress/
5
  Description: Lite version of MailChimp for WordPress. Add various sign-up methods to your website. Show sign-up forms in your posts, pages or widgets. Add sign-up checkboxes to various forms, like your comment or contact forms. Premium features include multiple and better forms, easier styling, detailed statistics and much more: <a href="http://dannyvankooten.com/mailchimp-for-wordpress/">Upgrade now</a>
6
- Version: 1.4
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvanKooten.com
9
  License: GPL v3
@@ -25,7 +25,7 @@ You should have received a copy of the GNU General Public License
25
  along with this program. If not, see <http://www.gnu.org/licenses/>.
26
  */
27
 
28
- define("MC4WP_LITE_VERSION", "1.4");
29
  define("MC4WP_LITE_PLUGIN_DIR", plugin_dir_path(__FILE__));
30
 
31
  if(!function_exists('is_plugin_active')) {
3
  Plugin Name: MailChimp for WordPress Lite
4
  Plugin URI: http://dannyvankooten.com/mailchimp-for-wordpress/
5
  Description: Lite version of MailChimp for WordPress. Add various sign-up methods to your website. Show sign-up forms in your posts, pages or widgets. Add sign-up checkboxes to various forms, like your comment or contact forms. Premium features include multiple and better forms, easier styling, detailed statistics and much more: <a href="http://dannyvankooten.com/mailchimp-for-wordpress/">Upgrade now</a>
6
+ Version: 1.4.1
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvanKooten.com
9
  License: GPL v3
25
  along with this program. If not, see <http://www.gnu.org/licenses/>.
26
  */
27
 
28
+ define("MC4WP_LITE_VERSION", "1.4.1");
29
  define("MC4WP_LITE_PLUGIN_DIR", plugin_dir_path(__FILE__));
30
 
31
  if(!function_exists('is_plugin_active')) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: DvanKooten
3
  Donate link: http://dannyvankooten.com/donate/
4
  Tags: mailchimp, widget, form, checkbox, sign-up form, mandrill, buddypress, multisite, bbpress, contact form 7, newsletter, mailinglist
5
  Requires at least: 3.1
6
- Tested up to: 3.7
7
- Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -192,6 +192,9 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
192
 
193
  == Changelog ==
194
 
 
 
 
195
  = 1.4 - October 28, 2013 =
196
  * Added: default form CSS themes, choose between light, red, green, blue or dark form styling.
197
  * Added: filter to add more variables to Checkbox Sign-Ups.
@@ -381,6 +384,9 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
381
 
382
  == Upgrade Notice ==
383
 
 
 
 
384
  = 1.4 =
385
  New: default form themes, more unlocked fields in the "add field" tool and smarter auto-detection of name fields when integrating with Contact Form 7.
386
 
3
  Donate link: http://dannyvankooten.com/donate/
4
  Tags: mailchimp, widget, form, checkbox, sign-up form, mandrill, buddypress, multisite, bbpress, contact form 7, newsletter, mailinglist
5
  Requires at least: 3.1
6
+ Tested up to: 3.7.1
7
+ Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
192
 
193
  == Changelog ==
194
 
195
+ = 1.4.1 - October 29, 2013 =
196
+ * Fixed: Grouping data not being sent to MailChimp when using sign-up forms.
197
+
198
  = 1.4 - October 28, 2013 =
199
  * Added: default form CSS themes, choose between light, red, green, blue or dark form styling.
200
  * Added: filter to add more variables to Checkbox Sign-Ups.
384
 
385
  == Upgrade Notice ==
386
 
387
+ = 1.4.1 =
388
+ Fixed grouping information not being sent to MailChimp when using sign-up forms.
389
+
390
  = 1.4 =
391
  New: default form themes, more unlocked fields in the "add field" tool and smarter auto-detection of name fields when integrating with Contact Form 7.
392