Version Description
(2020-04-19) * Add more wp_insert_post failure logging
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.49 |
Comparing to | |
See all releases |
Code changes from version 1.9.48 to 1.9.49
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- postie-message.php +7 -0
- postie.php +2 -2
- 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.48 (2020-04-18)
|
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.49 (2020-04-19)
|
39 |
+
* Add more wp_insert_post failure logging
|
40 |
+
|
41 |
= 1.9.48 (2020-04-18)
|
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.
|
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.49
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
postie-message.php
CHANGED
@@ -635,15 +635,22 @@ class PostieMessage {
|
|
635 |
$details['post_content'] = str_replace('\\', '\\\\', $details['post_content']); //replace all backslashs with double backslashes since WP will remove single backslash
|
636 |
if (!$isReply) {
|
637 |
DebugEcho("postie_save_post: about to insert post");
|
|
|
|
|
|
|
|
|
638 |
$post_ID = wp_insert_post($details, true);
|
|
|
639 |
if (is_wp_error($post_ID)) {
|
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 |
DebugDump($wpdb->queries);
|
|
|
647 |
wp_delete_post($details['ID']);
|
648 |
|
649 |
$this->email_error("Failed to create {$details['post_type']}: {$details['post_title']}", "Error: " . $post_ID->get_error_message() . "\n\n" . $details['post_content']);
|
635 |
$details['post_content'] = str_replace('\\', '\\\\', $details['post_content']); //replace all backslashs with double backslashes since WP will remove single backslash
|
636 |
if (!$isReply) {
|
637 |
DebugEcho("postie_save_post: about to insert post");
|
638 |
+
if ($this->is_debugmode() && !defined('SAVEQUERIES')) {
|
639 |
+
define('SAVEQUERIES', true);
|
640 |
+
}
|
641 |
+
|
642 |
$post_ID = wp_insert_post($details, true);
|
643 |
+
|
644 |
if (is_wp_error($post_ID)) {
|
645 |
EchoError("PostToDB Error: " . $post_ID->get_error_message());
|
646 |
DebugDump($post_ID->get_error_messages());
|
647 |
DebugDump($post_ID->get_error_data());
|
648 |
+
|
649 |
global $wpdb;
|
650 |
EchoError('PostToDB last_error: ' . $wpdb->last_error);
|
651 |
EchoError('PostToDB last_query: ' . $wpdb->last_query);
|
652 |
DebugDump($wpdb->queries);
|
653 |
+
|
654 |
wp_delete_post($details['ID']);
|
655 |
|
656 |
$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.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
@@ -28,7 +28,7 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
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.49
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 2286911 2020-04-19 18:48:20Z 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.
|
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.48 (2020-04-18)
|
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.49
|
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.49 (2020-04-19)
|
111 |
+
* Add more wp_insert_post failure logging
|
112 |
+
|
113 |
= 1.9.48 (2020-04-18)
|
114 |
* Add more wp_insert_post failure logging
|
115 |
|