Version Description
- FIXED: Some PHP 5.3 installations don't have the finfo_open available so we're now checking for the function instead of the PHP version
Download this release
Release Info
Developer | MC_Will |
Plugin | wpMandrill |
Version | 1.31 |
Comparing to | |
See all releases |
Code changes from version 1.30 to 1.31
- lib/mandrill.class.php +2 -2
- readme.txt +3 -0
- wpmandrill.php +1 -1
lib/mandrill.class.php
CHANGED
@@ -543,14 +543,14 @@ class Mandrill {
|
|
543 |
if (strnatcmp(phpversion(),'6') >= 0) set_magic_quotes_runtime($magic_quotes);
|
544 |
|
545 |
$mime_type = '';
|
546 |
-
if (
|
547 |
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
548 |
$mime_type = finfo_file($finfo, $path);
|
549 |
} elseif ( function_exists('mime_content_type') ) {
|
550 |
$mime_type = mime_content_type($path);
|
551 |
}
|
552 |
|
553 |
-
if ( !empty($mime_type) ) $struct['type'] = $mime_type;
|
554 |
$struct['name'] = $filename;
|
555 |
$struct['content'] = $file_buffer;
|
556 |
|
543 |
if (strnatcmp(phpversion(),'6') >= 0) set_magic_quotes_runtime($magic_quotes);
|
544 |
|
545 |
$mime_type = '';
|
546 |
+
if ( function_exists('finfo_open') && function_exists('finfo_file') ) {
|
547 |
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
548 |
$mime_type = finfo_file($finfo, $path);
|
549 |
} elseif ( function_exists('mime_content_type') ) {
|
550 |
$mime_type = mime_content_type($path);
|
551 |
}
|
552 |
|
553 |
+
if ( !empty($mime_type) ) $struct['type'] = $mime_type;
|
554 |
$struct['name'] = $filename;
|
555 |
$struct['content'] = $file_buffer;
|
556 |
|
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.30 =
|
103 |
* FIXED: Multiples To: recipients where not being handling correctly.
|
104 |
|
99 |
4. Dashboard widget Settings
|
100 |
|
101 |
== Changelog ==
|
102 |
+
= 1.31 =
|
103 |
+
* FIXED: Some PHP 5.3 installations don't have the finfo_open available so we're now checking for the function instead of the PHP version
|
104 |
+
|
105 |
= 1.30 =
|
106 |
* FIXED: Multiples To: recipients where not being handling correctly.
|
107 |
|
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 |
/* Copyright 2012 MailChimp (email : will@mailchimp.com )
|
5 |
Author: Mandrill
|
6 |
Author URI: http://mandrillapp.com/
|
7 |
Plugin URI: http://connect.mailchimp.com/integrations/wpmandrill
|
8 |
+
Version: 1.31
|
9 |
Text Domain: wpmandrill
|
10 |
*/
|
11 |
/* Copyright 2012 MailChimp (email : will@mailchimp.com )
|