Version Description
(2019-03-02) = * Move intermediate_image_sizes_advanced filter to only be effective when Postie is running
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.32 |
Comparing to | |
See all releases |
Code changes from version 1.9.31 to 1.9.32
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- postie.class.php +14 -1
- postie.php +3 -16
- 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.31 (2019-02-28) =
|
39 |
* Additional logging to chase down customer issue
|
40 |
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
38 |
+
= 1.9.32 (2019-03-02) =
|
39 |
+
* Move intermediate_image_sizes_advanced filter to only be effective when Postie is running
|
40 |
+
|
41 |
= 1.9.31 (2019-02-28) =
|
42 |
* Additional logging to chase down customer issue
|
43 |
|
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.1
|
10 |
-
Stable tag: 1.9.
|
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.1
|
10 |
+
Stable tag: 1.9.32
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
postie.class.php
CHANGED
@@ -43,6 +43,7 @@ class Postie {
|
|
43 |
if (true == $config['postie_log_debug'] || (defined('POSTIE_DEBUG') && true == POSTIE_DEBUG)) {
|
44 |
add_action('postie_log_debug', array($this, 'log_debug'));
|
45 |
}
|
|
|
46 |
|
47 |
DebugEcho('Starting mail fetch');
|
48 |
DebugEcho('WordPress datetime: ' . current_time('mysql'));
|
@@ -132,6 +133,18 @@ class Postie {
|
|
132 |
}
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
function save_attachments(&$email, $post_id, $config) {
|
136 |
DebugEcho('save_attachments: ---- start');
|
137 |
|
@@ -361,7 +374,7 @@ class Postie {
|
|
361 |
DebugEcho("save_attachment: generating file name");
|
362 |
$filename = uniqid();
|
363 |
$mparts = explode('/', $attachment['mimetype']);
|
364 |
-
$attachment['filename'] = $filename . '.'
|
365 |
}
|
366 |
|
367 |
DebugEcho("save_attachment: pre sanitize file name '$filename'");
|
43 |
if (true == $config['postie_log_debug'] || (defined('POSTIE_DEBUG') && true == POSTIE_DEBUG)) {
|
44 |
add_action('postie_log_debug', array($this, 'log_debug'));
|
45 |
}
|
46 |
+
add_filter('intermediate_image_sizes_advanced', array($this, 'intermediate_image_sizes_advanced'));
|
47 |
|
48 |
DebugEcho('Starting mail fetch');
|
49 |
DebugEcho('WordPress datetime: ' . current_time('mysql'));
|
133 |
}
|
134 |
}
|
135 |
|
136 |
+
function intermediate_image_sizes_advanced($sizes) {
|
137 |
+
$config = postie_config_read();
|
138 |
+
if ($config[PostieConfigOptions::ImageResize]) {
|
139 |
+
DebugEcho('intermediate_image_sizes_advanced');
|
140 |
+
DebugDump($sizes);
|
141 |
+
return $sizes;
|
142 |
+
}
|
143 |
+
|
144 |
+
DebugEcho('intermediate_image_sizes_advanced: None');
|
145 |
+
return false;
|
146 |
+
}
|
147 |
+
|
148 |
function save_attachments(&$email, $post_id, $config) {
|
149 |
DebugEcho('save_attachments: ---- start');
|
150 |
|
374 |
DebugEcho("save_attachment: generating file name");
|
375 |
$filename = uniqid();
|
376 |
$mparts = explode('/', $attachment['mimetype']);
|
377 |
+
$attachment['filename'] = $filename . '.' . $mparts[1];
|
378 |
}
|
379 |
|
380 |
DebugEcho("save_attachment: pre sanitize file name '$filename'");
|
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.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
@@ -28,14 +28,14 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
-
define('POSTIE_VERSION', '1.9.
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
@@ -62,7 +62,6 @@ if (!class_exists('PostieInit')) {
|
|
62 |
add_filter("plugin_action_links_" . plugin_basename(__FILE__), array($this, 'plugin_action_links_filter'));
|
63 |
add_filter('plugin_row_meta', array($this, 'plugin_row_meta_filter'), 10, 2);
|
64 |
add_filter('enable_post_by_email_configuration', array($this, 'enable_post_by_email_configuration'));
|
65 |
-
add_filter('intermediate_image_sizes_advanced', array($this, 'intermediate_image_sizes_advanced'));
|
66 |
|
67 |
//WordPress Hooks
|
68 |
register_activation_hook(__FILE__, array('PostieInit', 'postie_activate_hook'));
|
@@ -133,18 +132,6 @@ if (!class_exists('PostieInit')) {
|
|
133 |
return false;
|
134 |
}
|
135 |
|
136 |
-
function intermediate_image_sizes_advanced($sizes) {
|
137 |
-
$config = postie_config_read();
|
138 |
-
if ($config[PostieConfigOptions::ImageResize]) {
|
139 |
-
DebugEcho('intermediate_image_sizes_advanced');
|
140 |
-
DebugDump($sizes);
|
141 |
-
return $sizes;
|
142 |
-
}
|
143 |
-
|
144 |
-
DebugEcho('intermediate_image_sizes_advanced: None');
|
145 |
-
return false;
|
146 |
-
}
|
147 |
-
|
148 |
function plugin_row_meta_filter($links, $file) {
|
149 |
if (strpos($file, plugin_basename(__FILE__)) !== false) {
|
150 |
$new_links = array(
|
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.32
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 2042984 2019-03-02 22:59:05Z WayneAllen $
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
+
define('POSTIE_VERSION', '1.9.32');
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
62 |
add_filter("plugin_action_links_" . plugin_basename(__FILE__), array($this, 'plugin_action_links_filter'));
|
63 |
add_filter('plugin_row_meta', array($this, 'plugin_row_meta_filter'), 10, 2);
|
64 |
add_filter('enable_post_by_email_configuration', array($this, 'enable_post_by_email_configuration'));
|
|
|
65 |
|
66 |
//WordPress Hooks
|
67 |
register_activation_hook(__FILE__, array('PostieInit', 'postie_activate_hook'));
|
132 |
return false;
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
function plugin_row_meta_filter($links, $file) {
|
136 |
if (strpos($file, plugin_basename(__FILE__)) !== false) {
|
137 |
$new_links = array(
|
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.1
|
10 |
-
Stable tag: 1.9.
|
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.31 (2019-02-28) =
|
111 |
* Additional logging to chase down customer issue
|
112 |
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 5.1
|
10 |
+
Stable tag: 1.9.32
|
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.32 (2019-03-02) =
|
111 |
+
* Move intermediate_image_sizes_advanced filter to only be effective when Postie is running
|
112 |
+
|
113 |
= 1.9.31 (2019-02-28) =
|
114 |
* Additional logging to chase down customer issue
|
115 |
|