Postie - Version 1.9.30

Version Description

(2019-02-25) = * WP 5.1 compatibility testing * Add setting to skip image resizing

Download this release

Release Info

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

Code changes from version 1.9.29 to 1.9.30

config_form_image.php CHANGED
@@ -9,6 +9,7 @@
9
  echo PostieAdmin::boolean_select_html(__("Image Location", 'postie'), "postie-settings[images_append]", $images_append, __("Location of attachments if using 'plain' format. Before or After content. For 'html' content this will only affect attachments that are not inline.", 'postie'), array('After', 'Before'));
10
  echo PostieAdmin::boolean_select_html(__("Start Image Count At", 'postie'), "postie-settings[start_image_count_at_zero]", $start_image_count_at_zero, __('For use if using "Image Place Holder Tag" below.', 'postie'), array('Start at 0', 'Start at 1'));
11
  echo PostieAdmin::boolean_select_html(__("Use custom image field for images", 'postie'), "postie-settings[custom_image_field]", $custom_image_field, __("When set to 'Yes' no images will appear in the post (other attachment types will be processed normally). Instead the url to the attachment will be put into a custom field named 'image'. Your theme will need logic to display these attachments", 'postie'));
 
12
  ?>
13
  <tr>
14
  <th scope="row"><?php _e('Image Place Holder Tag', 'postie') ?></th>
9
  echo PostieAdmin::boolean_select_html(__("Image Location", 'postie'), "postie-settings[images_append]", $images_append, __("Location of attachments if using 'plain' format. Before or After content. For 'html' content this will only affect attachments that are not inline.", 'postie'), array('After', 'Before'));
10
  echo PostieAdmin::boolean_select_html(__("Start Image Count At", 'postie'), "postie-settings[start_image_count_at_zero]", $start_image_count_at_zero, __('For use if using "Image Place Holder Tag" below.', 'postie'), array('Start at 0', 'Start at 1'));
11
  echo PostieAdmin::boolean_select_html(__("Use custom image field for images", 'postie'), "postie-settings[custom_image_field]", $custom_image_field, __("When set to 'Yes' no images will appear in the post (other attachment types will be processed normally). Instead the url to the attachment will be put into a custom field named 'image'. Your theme will need logic to display these attachments", 'postie'));
12
+ echo PostieAdmin::boolean_select_html(__("Create Alternate Image Sizes", 'postie'), "postie-settings[image_resize]", $image_resize, __("Some hosts have issues with image resizing. Use this setting to disable resizing.", 'postie'));
13
  ?>
14
  <tr>
15
  <th scope="row"><?php _e('Image Place Holder Tag', 'postie') ?></th>
config_form_server.php CHANGED
@@ -48,7 +48,7 @@
48
  <th scope="row"><?php _e('Mail Userid', 'postie') ?></th>
49
  <td>
50
  <input name='postie-settings[mail_userid]' type="text" id='postie-settings-mail_userid' autocomplete='new-password' value="<?php echo esc_attr($mail_userid); ?>" size="40" />
51
- <p class='description'><?php _e("Typically your full email address.", 'postie'); ?><br />
52
  </td>
53
  </tr>
54
  <tr valign="top">
48
  <th scope="row"><?php _e('Mail Userid', 'postie') ?></th>
49
  <td>
50
  <input name='postie-settings[mail_userid]' type="text" id='postie-settings-mail_userid' autocomplete='new-password' value="<?php echo esc_attr($mail_userid); ?>" size="40" />
51
+ <p class='description'><?php _e("Note that Postie will read and DELETE all the email in this account. Typically your full email address.", 'postie'); ?><br />
52
  </td>
53
  </tr>
54
  <tr valign="top">
docs/Changes.txt CHANGED
@@ -35,6 +35,10 @@ 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.29 (2019-02-18) =
39
  * Fix delay, command was not being removed from content in all cases
40
  * Additional debug output to track down attachment issue
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.9.30 (2019-02-25) =
39
+ * WP 5.1 compatibility testing
40
+ * Add setting to skip image resizing
41
+
42
  = 1.9.29 (2019-02-18) =
43
  * Fix delay, command was not being removed from content in all cases
44
  * Additional debug output to track down attachment issue
docs/Postie.txt CHANGED
@@ -6,8 +6,8 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
- Tested up to: 5.0
10
- Stable tag: 1.9.29
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
6
  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.30
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
postie-config.class.php CHANGED
@@ -9,11 +9,16 @@ class PostieConfigOptions {
9
  const CategoryDash = 'category_dash';
10
  const CategoryColon = 'category_colon';
11
  const PostFormat = 'post_format';
 
12
 
13
  }
14
 
15
  class PostieConfig {
16
 
 
 
 
 
17
  private $config;
18
 
19
  function __construct() {
@@ -25,6 +30,10 @@ class PostieConfig {
25
  return $this->validate_settings($config);
26
  }
27
 
 
 
 
 
28
  function config_read() {
29
  return $this->config;
30
  }
@@ -226,7 +235,8 @@ class PostieConfig {
226
  'category_remove' => true,
227
  'ignore_email_date' => false,
228
  'use_time_offset' => false,
229
- 'postie_log_error_notify' => '(All Admins)'
 
230
  );
231
  }
232
 
9
  const CategoryDash = 'category_dash';
10
  const CategoryColon = 'category_colon';
11
  const PostFormat = 'post_format';
12
+ const ImageResize = 'image_resize';
13
 
14
  }
15
 
16
  class PostieConfig {
17
 
18
+ /**
19
+ *
20
+ * @config array
21
+ */
22
  private $config;
23
 
24
  function __construct() {
30
  return $this->validate_settings($config);
31
  }
32
 
33
+ /**
34
+ *
35
+ * @return array
36
+ */
37
  function config_read() {
38
  return $this->config;
39
  }
235
  'category_remove' => true,
236
  'ignore_email_date' => false,
237
  'use_time_offset' => false,
238
+ 'postie_log_error_notify' => '(All Admins)',
239
+ 'image_resize' => true
240
  );
241
  }
242
 
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.29
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
@@ -28,14 +28,14 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 2033607 2019-02-18 21:27:06Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
35
  die; // Exit if accessed directly
36
  }
37
 
38
- define('POSTIE_VERSION', '1.9.29');
39
  define('POSTIE_ROOT', dirname(__FILE__));
40
  define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
41
 
@@ -62,6 +62,7 @@ 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
 
66
  //WordPress Hooks
67
  register_activation_hook(__FILE__, array('PostieInit', 'postie_activate_hook'));
@@ -132,6 +133,18 @@ if (!class_exists('PostieInit')) {
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(
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.30
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
28
  */
29
 
30
  /*
31
+ $Id: postie.php 2039380 2019-02-26 05:11:57Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
35
  die; // Exit if accessed directly
36
  }
37
 
38
+ define('POSTIE_VERSION', '1.9.30');
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
+ 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
  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(
readme.txt CHANGED
@@ -6,8 +6,8 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
- Tested up to: 5.0
10
- Stable tag: 1.9.29
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -107,6 +107,10 @@ 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.29 (2019-02-18) =
111
  * Fix delay, command was not being removed from content in all cases
112
  * Additional debug output to track down attachment issue
6
  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.30
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.30 (2019-02-25) =
111
+ * WP 5.1 compatibility testing
112
+ * Add setting to skip image resizing
113
+
114
  = 1.9.29 (2019-02-18) =
115
  * Fix delay, command was not being removed from content in all cases
116
  * Additional debug output to track down attachment issue