Postie - Version 1.9.47

Version Description

(2020-04-16) * Add wp_insert_post failure logging

Download this release

Release Info

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

Code changes from version 1.9.46 to 1.9.47

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.46 (2020-04-11)
39
  * escape IMAP password
40
  * fix logging in get_parent_postid
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.9.47 (2020-04-16)
39
+ * Add wp_insert_post failure logging
40
+
41
  = 1.9.46 (2020-04-11)
42
  * escape IMAP password
43
  * fix logging in get_parent_postid
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.46
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.47
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
postie-config.class.php CHANGED
@@ -12,6 +12,7 @@ class PostieConfigOptions {
12
  const ImageResize = 'image_resize';
13
  const DefaultTitle = 'default_title';
14
  const TurnAuthorizationOff = 'turn_authorization_off';
 
15
 
16
  }
17
 
12
  const ImageResize = 'image_resize';
13
  const DefaultTitle = 'default_title';
14
  const TurnAuthorizationOff = 'turn_authorization_off';
15
+ const PreferTextType = 'prefer_text_type';
16
 
17
  }
18
 
postie-message.php CHANGED
@@ -134,7 +134,7 @@ class PostieMessage {
134
 
135
  DebugEcho('process: shortcodes: Before postie_register_shortcode_pre');
136
  $details = $this->do_shortcodes('postie_register_shortcode_pre', $details);
137
- DebugEcho("process: shortcodes: After postie_register_shortcode_pre");
138
  DebugDump($details);
139
 
140
  DebugEcho('process: filter: Before postie_post_before');
@@ -640,6 +640,9 @@ class PostieMessage {
640
  EchoError("PostToDB Error: " . $post_ID->get_error_message());
641
  DebugDump($post_ID->get_error_messages());
642
  DebugDump($post_ID->get_error_data());
 
 
 
643
  wp_delete_post($details['ID']);
644
 
645
  $this->email_error("Failed to create {$details['post_type']}: {$details['post_title']}", "Error: " . $post_ID->get_error_message() . "\n\n" . $details['post_content']);
134
 
135
  DebugEcho('process: shortcodes: Before postie_register_shortcode_pre');
136
  $details = $this->do_shortcodes('postie_register_shortcode_pre', $details);
137
+ DebugEcho("process: shortcodes: After do_shortcodes");
138
  DebugDump($details);
139
 
140
  DebugEcho('process: filter: Before postie_post_before');
640
  EchoError("PostToDB Error: " . $post_ID->get_error_message());
641
  DebugDump($post_ID->get_error_messages());
642
  DebugDump($post_ID->get_error_data());
643
+ global $wpdb;
644
+ EchoError('PostToDB last_error: ' . $wpdb->last_error);
645
+ EchoError('PostToDB last_query: ' . $wpdb->last_query);
646
  wp_delete_post($details['ID']);
647
 
648
  $this->email_error("Failed to create {$details['post_type']}: {$details['post_title']}", "Error: " . $post_ID->get_error_message() . "\n\n" . $details['post_content']);
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.46
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 2281637 2020-04-11 19:22:50Z 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.47
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
28
  */
29
 
30
  /*
31
+ $Id: postie.php 2285376 2020-04-17 03:20:04Z 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.4
10
- Stable tag: 1.9.46
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.46 (2020-04-11)
111
  * escape IMAP password
112
  * fix logging in get_parent_postid
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 5.4
10
+ Stable tag: 1.9.47
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.47 (2020-04-16)
111
+ * Add wp_insert_post failure logging
112
+
113
  = 1.9.46 (2020-04-11)
114
  * escape IMAP password
115
  * fix logging in get_parent_postid