Version Description
(2020-05-08) * remove ob_end_flush from log_onscreen()
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.51 |
Comparing to | |
See all releases |
Code changes from version 1.9.50 to 1.9.51
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- postie.class.php +6 -10
- postie.php +2 -2
- readme.txt +5 -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.50 (2020-04-21)
|
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.51 (2020-05-08)
|
39 |
+
* remove ob_end_flush from log_onscreen()
|
40 |
+
|
41 |
= 1.9.50 (2020-04-21)
|
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.51
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
postie.class.php
CHANGED
@@ -437,20 +437,16 @@ class Postie {
|
|
437 |
}
|
438 |
|
439 |
function log_onscreen($data) {
|
440 |
-
if (php_sapi_name() ==
|
441 |
-
print(
|
442 |
} else {
|
443 |
-
|
444 |
-
while (ob_get_level() > 0) {
|
445 |
-
ob_end_flush();
|
446 |
-
}
|
447 |
-
print( "<pre>" . htmlspecialchars($data) . "</pre>\n");
|
448 |
}
|
449 |
}
|
450 |
|
451 |
function log_error($v) {
|
452 |
-
$this->log_onscreen($v);
|
453 |
error_log("Postie [error]: $v");
|
|
|
454 |
}
|
455 |
|
456 |
function log_debug($data) {
|
@@ -477,8 +473,8 @@ class Postie {
|
|
477 |
wp_get_current_user();
|
478 |
|
479 |
if (!current_user_can('manage_options')) {
|
480 |
-
DebugEcho(
|
481 |
-
echo
|
482 |
exit();
|
483 |
}
|
484 |
|
437 |
}
|
438 |
|
439 |
function log_onscreen($data) {
|
440 |
+
if (php_sapi_name() == 'cli') {
|
441 |
+
print("$data\n");
|
442 |
} else {
|
443 |
+
print("<pre>{htmlspecialchars($data)}</pre>\n");
|
|
|
|
|
|
|
|
|
444 |
}
|
445 |
}
|
446 |
|
447 |
function log_error($v) {
|
|
|
448 |
error_log("Postie [error]: $v");
|
449 |
+
$this->log_onscreen($v);
|
450 |
}
|
451 |
|
452 |
function log_debug($data) {
|
473 |
wp_get_current_user();
|
474 |
|
475 |
if (!current_user_can('manage_options')) {
|
476 |
+
DebugEcho('non-admin tried to set options');
|
477 |
+
echo '<h2> Sorry only admin can run this file</h2>';
|
478 |
exit();
|
479 |
}
|
480 |
|
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.51
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 2301300 2020-05-08 23:48:39Z 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.50 (2020-04-21)
|
111 |
* Add more wp_insert_post failure logging
|
112 |
|
@@ -1589,3 +1592,4 @@ plugin. And the rest is history :)
|
|
1589 |
*
|
1590 |
= 0.1 - 2004-06 =
|
1591 |
* First release
|
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 5.4
|
10 |
+
Stable tag: 1.9.51
|
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.51 (2020-05-08)
|
111 |
+
* remove ob_end_flush from log_onscreen()
|
112 |
+
|
113 |
= 1.9.50 (2020-04-21)
|
114 |
* Add more wp_insert_post failure logging
|
115 |
|
1592 |
*
|
1593 |
= 0.1 - 2004-06 =
|
1594 |
* First release
|
1595 |
+
|