wpMandrill - Version 1.30

Version Description

  • FIXED: Multiples To: recipients where not being handling correctly.
Download this release

Release Info

Developer MC_Will
Plugin Icon wp plugin wpMandrill
Version 1.30
Comparing to
See all releases

Code changes from version 1.29 to 1.30

Files changed (2) hide show
  1. readme.txt +3 -0
  2. wpmandrill.php +8 -3
readme.txt CHANGED
@@ -99,6 +99,9 @@ If your account has more than 20 senders registered or more than 40 tags used, t
99
  4. Dashboard widget Settings
100
 
101
  == Changelog ==
 
 
 
102
  = 1.29 =
103
  * ADDED: wp_mail, wp_mail_from, and wp_mail_from_name filters. ** Thanks Mike Little! **
104
  * ADDED: Support for "important" emails.
99
  4. Dashboard widget Settings
100
 
101
  == Changelog ==
102
+ = 1.30 =
103
+ * FIXED: Multiples To: recipients where not being handling correctly.
104
+
105
  = 1.29 =
106
  * ADDED: wp_mail, wp_mail_from, and wp_mail_from_name filters. ** Thanks Mike Little! **
107
  * ADDED: Support for "important" emails.
wpmandrill.php CHANGED
@@ -5,7 +5,7 @@ Description: wpMandrill sends emails, generated by WordPress using Mandrill.
5
  Author: Mandrill
6
  Author URI: http://mandrillapp.com/
7
  Plugin URI: http://connect.mailchimp.com/integrations/wpmandrill
8
- Version: 1.29
9
  Text Domain: wpmandrill
10
  */
11
  /* Copyright 2012 MailChimp (email : will@mailchimp.com )
@@ -1752,7 +1752,11 @@ JS;
1752
 
1753
  $processed_to = array();
1754
  foreach ( $message['to'] as $email ) {
1755
- $processed_to[] = array( 'email' => $email );
 
 
 
 
1756
  }
1757
  $message['to'] = $processed_to;
1758
 
@@ -1894,4 +1898,5 @@ function wpMandrill_transformJSArray(&$value, $key, $params = 0) {
1894
  break;
1895
  }
1896
  }
1897
- ?>
 
5
  Author: Mandrill
6
  Author URI: http://mandrillapp.com/
7
  Plugin URI: http://connect.mailchimp.com/integrations/wpmandrill
8
+ Version: 1.30
9
  Text Domain: wpmandrill
10
  */
11
  /* Copyright 2012 MailChimp (email : will@mailchimp.com )
1752
 
1753
  $processed_to = array();
1754
  foreach ( $message['to'] as $email ) {
1755
+ if ( is_array($email) ) {
1756
+ $processed_to[] = $email;
1757
+ } else {
1758
+ $processed_to[] = array( 'email' => $email );
1759
+ }
1760
  }
1761
  $message['to'] = $processed_to;
1762
 
1898
  break;
1899
  }
1900
  }
1901
+
1902
+ ?>