Postie - Version 1.9.57

Version Description

(2021-09-07) * if any attachment doesn't have a file extension use the secondary mime type

Download this release

Release Info

Developer WayneAllen
Plugin Icon 128x128 Postie
Version 1.9.57
Comparing to
See all releases

Code changes from version 1.9.56 to 1.9.57

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-message.php +2 -2
  4. postie.php +2 -2
  5. readme.txt +4 -1
docs/Changes.txt CHANGED
@@ -35,6 +35,9 @@ All script, style and body tags are stripped from html emails.
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
 
 
 
38
  = 1.9.56 (2021-08-06)
39
  * remove Allow HTML In Mail Body from settings as it didn't do anything
40
  * add Allow Duplicate Comments setting to deal with WordPress killing the import
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.9.57 (2021-09-07)
39
+ * if any attachment doesn't have a file extension use the secondary mime type
40
+
41
  = 1.9.56 (2021-08-06)
42
  * remove Allow HTML In Mail Body from settings as it didn't do anything
43
  * add Allow Duplicate Comments setting to deal with WordPress killing the import
docs/Postie.txt CHANGED
@@ -7,7 +7,7 @@ Tags: e-mail, email, post-by-email
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 5.8
10
- Stable tag: 1.9.56
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 5.8
10
+ Stable tag: 1.9.57
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
postie-message.php CHANGED
@@ -894,12 +894,12 @@ class PostieMessage {
894
 
895
  $fileext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
896
  $attachment['ext'] = $fileext;
897
- if (empty($fileext) && $mimetype_primary == 'image') {
898
  $attachment['ext'] = $mimetype_secondary;
899
  $filename = $filename . '.' . $mimetype_secondary;
900
  $attachment['wp_filename'] = $filename;
901
  $fileext = $mimetype_secondary;
902
- DebugEcho("save_attachment: blank image extension, changed to $mimetype_secondary ($filename)");
903
  }
904
  DebugEcho("save_attachment: extension '$fileext'");
905
 
894
 
895
  $fileext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
896
  $attachment['ext'] = $fileext;
897
+ if (empty($fileext)) {
898
  $attachment['ext'] = $mimetype_secondary;
899
  $filename = $filename . '.' . $mimetype_secondary;
900
  $attachment['wp_filename'] = $filename;
901
  $fileext = $mimetype_secondary;
902
+ DebugEcho("save_attachment: blank file extension, changed to $mimetype_secondary ($filename)");
903
  }
904
  DebugEcho("save_attachment: extension '$fileext'");
905
 
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
7
- Version: 1.9.56
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 2580545 2021-08-09 20:45:46Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
7
+ Version: 1.9.57
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
28
  */
29
 
30
  /*
31
+ $Id: postie.php 2595331 2021-09-07 21:10:52Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: e-mail, email, post-by-email
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 5.8
10
- Stable tag: 1.9.56
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -107,6 +107,9 @@ All script, style and body tags are stripped from html emails.
107
  Attachments are now processed in the order they were attached.
108
 
109
  == CHANGELOG ==
 
 
 
110
  = 1.9.56 (2021-08-06)
111
  * remove Allow HTML In Mail Body from settings as it didn't do anything
112
  * add Allow Duplicate Comments setting to deal with WordPress killing the import
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 5.8
10
+ Stable tag: 1.9.57
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
107
  Attachments are now processed in the order they were attached.
108
 
109
  == CHANGELOG ==
110
+ = 1.9.57 (2021-09-07)
111
+ * if any attachment doesn't have a file extension use the secondary mime type
112
+
113
  = 1.9.56 (2021-08-06)
114
  * remove Allow HTML In Mail Body from settings as it didn't do anything
115
  * add Allow Duplicate Comments setting to deal with WordPress killing the import