Version Description
- Fixed: Test email were using an old function.
- Fixed: Some data type checking to avoid PHP warnings.
Download this release
Release Info
Developer | MC_Will |
Plugin | wpMandrill |
Version | 1.03 |
Comparing to | |
See all releases |
Code changes from version 1.02 to 1.03
- readme.txt +4 -0
- stats.php +7 -2
- wpmandrill.php +9 -2
readme.txt
CHANGED
@@ -67,3 +67,7 @@ If the sending fails for any reason, the plugin will try to send it again using
|
|
67 |
= 1.02 =
|
68 |
* Fixed: Dashboard widget title was displaying incorrectly when a filter was defined.
|
69 |
|
|
|
|
|
|
|
|
67 |
= 1.02 =
|
68 |
* Fixed: Dashboard widget title was displaying incorrectly when a filter was defined.
|
69 |
|
70 |
+
= 1.03 =
|
71 |
+
* Fixed: Test email were using an old function.
|
72 |
+
* Fixed: Some data type checking to avoid PHP warnings.
|
73 |
+
|
stats.php
CHANGED
@@ -66,8 +66,13 @@ $lit['clickrate'] = __('Click Rate',self::WPDOMAIN);
|
|
66 |
</optgroup>
|
67 |
<optgroup label="<?php _e('Tag:', wpMandrill::WPDOMAIN); ?>">
|
68 |
<?php
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
?>
|
73 |
</optgroup>
|
66 |
</optgroup>
|
67 |
<optgroup label="<?php _e('Tag:', wpMandrill::WPDOMAIN); ?>">
|
68 |
<?php
|
69 |
+
if ( isset($stats['stats']['hourly']['tags']['detailed_stats'])
|
70 |
+
&& is_array($stats['stats']['hourly']['tags']['detailed_stats']) ) {
|
71 |
+
|
72 |
+
foreach ( array_keys($stats['stats']['hourly']['tags']['detailed_stats']) as $tag) {
|
73 |
+
echo '<option value="'.$tag.'">'.$tag.'</option>';
|
74 |
+
}
|
75 |
+
|
76 |
}
|
77 |
?>
|
78 |
</optgroup>
|
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.
|
9 |
Text Domain: wpmandrill
|
10 |
*/
|
11 |
|
@@ -56,7 +56,14 @@ class wpMandrill {
|
|
56 |
try {
|
57 |
|
58 |
$sent = wpMandrill::mail( $to, $subject, $message, $headers, $attachments );
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
return true;
|
62 |
} catch ( Exception $e ) {
|
5 |
Author: Mandrill
|
6 |
Author URI: http://mandrillapp.com/
|
7 |
Plugin URI: http://connect.mailchimp.com/integrations/wpmandrill
|
8 |
+
Version: 1.03
|
9 |
Text Domain: wpmandrill
|
10 |
*/
|
11 |
|
56 |
try {
|
57 |
|
58 |
$sent = wpMandrill::mail( $to, $subject, $message, $headers, $attachments );
|
59 |
+
|
60 |
+
if ( is_a($sent, 'Mandrill_Exception')
|
61 |
+
|| is_wp_error($sent)
|
62 |
+
|| !isset($sent[0]['status'])
|
63 |
+
|| ( isset($sent[0]['status']) && 'sent' != $sent[0]['status'] ) ) {
|
64 |
+
|
65 |
+
return self::wp_mail_native( $to, $subject, $message, $headers, $attachments );
|
66 |
+
}
|
67 |
|
68 |
return true;
|
69 |
} catch ( Exception $e ) {
|