Postie - Version 1.9.50

Version Description

(2020-04-21) * Add more wp_insert_post failure logging

Download this release

Release Info

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

Code changes from version 1.9.49 to 1.9.50

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie.class.php +5 -0
  4. postie.php +16 -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.49 (2020-04-19)
39
  * Add more wp_insert_post failure logging
40
 
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.9.50 (2020-04-21)
39
+ * Add more wp_insert_post failure logging
40
+
41
  = 1.9.49 (2020-04-19)
42
  * Add more wp_insert_post failure logging
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.4
10
- Stable tag: 1.9.49
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.4
10
+ Stable tag: 1.9.45
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
postie.class.php CHANGED
@@ -278,7 +278,12 @@ class Postie {
278
  DebugEcho("PHP cURL version: " . $cv['version'], $force_display);
279
  }
280
 
 
 
281
  DebugEcho("MySQL Version: " . $wpdb->db_version(), $force_display);
 
 
 
282
 
283
  DebugEcho("WordPress Version: " . get_bloginfo('version'), $force_display);
284
  if (defined('MULTISITE') && MULTISITE) {
278
  DebugEcho("PHP cURL version: " . $cv['version'], $force_display);
279
  }
280
 
281
+ DebugEcho("PHP Multibyte String support: " . (function_exists('mb_detect_encoding') ? 'yes' : 'No'), $force_display);
282
+
283
  DebugEcho("MySQL Version: " . $wpdb->db_version(), $force_display);
284
+ DebugEcho("MySQL client: " . ($wpdb->use_mysqli ? 'mysqli' : 'mysql'), $force_display);
285
+ $charset = $wpdb->get_col_charset($wpdb->posts, 'post_content');
286
+ DebugEcho("$wpdb->posts charset: $charset", $force_display);
287
 
288
  DebugEcho("WordPress Version: " . get_bloginfo('version'), $force_display);
289
  if (defined('MULTISITE') && MULTISITE) {
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.49
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 2286911 2020-04-19 18:48:20Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
@@ -57,6 +57,8 @@ if (!class_exists('PostieInit')) {
57
  add_action('admin_menu', array($this, 'admin_menu_action'));
58
  add_action('admin_head', array($this, 'admin_head_action'));
59
  add_action('plugins_loaded', array($this, 'plugins_loaded_action'));
 
 
60
 
61
  //WordPress filters
62
  add_filter('whitelist_options', array($this, 'whitelist_options_filter'));
@@ -66,6 +68,7 @@ if (!class_exists('PostieInit')) {
66
  add_filter('plugin_row_meta', array($this, 'plugin_row_meta_filter'), 10, 2);
67
  add_filter('enable_post_by_email_configuration', array($this, 'enable_post_by_email_configuration'));
68
  add_filter('site_status_tests', array($this, 'site_status_tests_filter'));
 
69
 
70
  //WordPress Hooks
71
  register_activation_hook(__FILE__, array('PostieInit', 'postie_activate_hook'));
@@ -136,6 +139,12 @@ if (!class_exists('PostieInit')) {
136
  return $tests;
137
  }
138
 
 
 
 
 
 
 
139
  //https://make.wordpress.org/core/2019/04/25/site-health-check-in-5-2/
140
  function test_delete_mail_after_processing() {
141
  $config = postie_config_read();
@@ -175,6 +184,11 @@ if (!class_exists('PostieInit')) {
175
  return $result;
176
  }
177
 
 
 
 
 
 
178
  function plugins_loaded_action() {
179
  load_plugin_textdomain('postie', false, dirname(plugin_basename(__FILE__)) . '/languages/');
180
  }
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.50
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
28
  */
29
 
30
  /*
31
+ $Id: postie.php 2288753 2020-04-21 22:00:30Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
57
  add_action('admin_menu', array($this, 'admin_menu_action'));
58
  add_action('admin_head', array($this, 'admin_head_action'));
59
  add_action('plugins_loaded', array($this, 'plugins_loaded_action'));
60
+ add_action('pre_post_update', array($this, 'pre_post_update_action'), 10, 2);
61
+
62
 
63
  //WordPress filters
64
  add_filter('whitelist_options', array($this, 'whitelist_options_filter'));
68
  add_filter('plugin_row_meta', array($this, 'plugin_row_meta_filter'), 10, 2);
69
  add_filter('enable_post_by_email_configuration', array($this, 'enable_post_by_email_configuration'));
70
  add_filter('site_status_tests', array($this, 'site_status_tests_filter'));
71
+ add_filter('query', array($this, 'query_filter'));
72
 
73
  //WordPress Hooks
74
  register_activation_hook(__FILE__, array('PostieInit', 'postie_activate_hook'));
139
  return $tests;
140
  }
141
 
142
+ function query_filter($query) {
143
+ DebugEcho("Query: $query");
144
+
145
+ return $query;
146
+ }
147
+
148
  //https://make.wordpress.org/core/2019/04/25/site-health-check-in-5-2/
149
  function test_delete_mail_after_processing() {
150
  $config = postie_config_read();
184
  return $result;
185
  }
186
 
187
+ function pre_post_update_action($post_id, $post_data) {
188
+ DebugEcho('pre_post_update');
189
+ DebugDump($post_data);
190
+ }
191
+
192
  function plugins_loaded_action() {
193
  load_plugin_textdomain('postie', false, dirname(plugin_basename(__FILE__)) . '/languages/');
194
  }
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.4
10
- Stable tag: 1.9.49
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.49 (2020-04-19)
111
  * Add more wp_insert_post failure logging
112
 
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 5.4
10
+ Stable tag: 1.9.50
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.50 (2020-04-21)
111
+ * Add more wp_insert_post failure logging
112
+
113
  = 1.9.49 (2020-04-19)
114
  * Add more wp_insert_post failure logging
115