MailChimp List Subscribe Form - Version 0.4

Version Description

Download this release

Release Info

Developer mc_jesse
Plugin Icon wp plugin MailChimp List Subscribe Form
Version 0.4
Comparing to
See all releases

Code changes from version 0.3 to 0.4

Files changed (2) hide show
  1. mailchimp.php +8 -2
  2. readme.txt +1 -1
mailchimp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp
4
  Plugin URI: http://mailchimp.com/api/plugins/wordpress
5
  Description: The MailChimp plugin allows you to easily setup a Subscribe box for your MailChimp list - So easy a chimp could do it!
6
- Version: 0.3
7
  Author: MailChimp API Support Team
8
  Author URI: http://mailchimp.com/api/
9
  */
@@ -490,7 +490,13 @@ function mc_display_widget(){
490
  }
491
  }
492
  if (!$failed){
493
- if (sizeof($merge) == 0){ $merge = array(''); }
 
 
 
 
 
 
494
  $api = new MCAPI(get_option('mc_username'), get_option('mc_password'));
495
  $retval = $api->listSubscribe( $listId, $email, $merge);
496
  if (!$retval){
3
  Plugin Name: MailChimp
4
  Plugin URI: http://mailchimp.com/api/plugins/wordpress
5
  Description: The MailChimp plugin allows you to easily setup a Subscribe box for your MailChimp list - So easy a chimp could do it!
6
+ Version: 0.4
7
  Author: MailChimp API Support Team
8
  Author URI: http://mailchimp.com/api/
9
  */
490
  }
491
  }
492
  if (!$failed){
493
+ foreach($merge as $k=>$v){
494
+ if (trim($v)===''){
495
+ unset($merge[$k]);
496
+ }
497
+ }
498
+ if (sizeof($merge) == 0 || $merge==''){ $merge = ''; }
499
+
500
  $api = new MCAPI(get_option('mc_username'), get_option('mc_password'));
501
  $retval = $api->listSubscribe( $listId, $email, $merge);
502
  if (!$retval){
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mc_jesse
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.6
6
- Stable tag: 0.3
7
  Author URI: http://www.mailchimp.com/api/
8
  Plugin URI: http://www.mailchimp.com/plugins/wordpress.phtml
9
 
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.6
6
+ Stable tag: 0.4
7
  Author URI: http://www.mailchimp.com/api/
8
  Plugin URI: http://www.mailchimp.com/plugins/wordpress.phtml
9