Postie - Version 1.9.8

Version Description

(2017-10-23) = * Fix: check that global is initialized before using

Download this release

Release Info

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

Code changes from version 1.9.7 to 1.9.8

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-api.php +13 -5
  4. postie.php +3 -3
  5. 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.7 (2017-10-19) =
39
  * Fix: more robustness if iconv fails
40
 
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.9.8 (2017-10-23) =
39
+ * Fix: check that global is initialized before using
40
+
41
  = 1.9.7 (2017-10-19) =
42
  * Fix: more robustness if iconv fails
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: 4.8.2
10
- Stable tag: 1.9.7
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: 4.8.2
10
+ Stable tag: 1.9.8
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
postie-api.php CHANGED
@@ -21,13 +21,15 @@ function RemoveExtraCharactersInEmailAddress($address) {
21
 
22
  function EchoError($v) {
23
  global $g_postie;
24
- $g_postie->log_error($v);
 
 
25
  do_action('postie_log_debug', $v);
26
  }
27
 
28
  function DebugDump($v) {
29
  global $g_postie;
30
- if (defined('POSTIE_DEBUG') && true == POSTIE_DEBUG) {
31
  $g_postie->log_onscreen(print_r($v, true));
32
  }
33
  do_action('postie_log_debug', print_r($v, true));
@@ -36,7 +38,9 @@ function DebugDump($v) {
36
  function DebugEcho($v, $force = false) {
37
  global $g_postie;
38
  if ($force || (defined('POSTIE_DEBUG') && true == POSTIE_DEBUG)) {
39
- $g_postie->log_onscreen($v);
 
 
40
  }
41
  do_action('postie_log_debug', $v);
42
  }
@@ -53,12 +57,16 @@ function postie_check() {
53
  //don't use DebugEcho or EchoInfo here as it is not defined when called as an action
54
  //error_log("check_postie");
55
  global $g_postie;
56
- $g_postie->get_mail();
 
 
57
  }
58
 
59
  function postie_get_mail() {
60
  //don't use DebugEcho or EchoInfo here as it is not defined when called as an action
61
  //error_log("check_postie");
62
  global $g_postie;
63
- $g_postie->get_mail();
 
 
64
  }
21
 
22
  function EchoError($v) {
23
  global $g_postie;
24
+ if (!empty($g_postie)) {
25
+ $g_postie->log_error($v);
26
+ }
27
  do_action('postie_log_debug', $v);
28
  }
29
 
30
  function DebugDump($v) {
31
  global $g_postie;
32
+ if (defined('POSTIE_DEBUG') && true == POSTIE_DEBUG && !empty($g_postie)) {
33
  $g_postie->log_onscreen(print_r($v, true));
34
  }
35
  do_action('postie_log_debug', print_r($v, true));
38
  function DebugEcho($v, $force = false) {
39
  global $g_postie;
40
  if ($force || (defined('POSTIE_DEBUG') && true == POSTIE_DEBUG)) {
41
+ if (!empty($g_postie)) {
42
+ $g_postie->log_onscreen($v);
43
+ }
44
  }
45
  do_action('postie_log_debug', $v);
46
  }
57
  //don't use DebugEcho or EchoInfo here as it is not defined when called as an action
58
  //error_log("check_postie");
59
  global $g_postie;
60
+ if (!empty($g_postie)) {
61
+ $g_postie->get_mail();
62
+ }
63
  }
64
 
65
  function postie_get_mail() {
66
  //don't use DebugEcho or EchoInfo here as it is not defined when called as an action
67
  //error_log("check_postie");
68
  global $g_postie;
69
+ if (!empty($g_postie)) {
70
+ $g_postie->get_mail();
71
+ }
72
  }
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.7
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
@@ -28,14 +28,14 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1749620 2017-10-20 02:25:15Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
35
  die; // Exit if accessed directly
36
  }
37
 
38
- define('POSTIE_VERSION', '1.9.7');
39
  define('POSTIE_ROOT', dirname(__FILE__));
40
  define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
41
 
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
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1751535 2017-10-23 23:23:41Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
35
  die; // Exit if accessed directly
36
  }
37
 
38
+ define('POSTIE_VERSION', '1.9.8');
39
  define('POSTIE_ROOT', dirname(__FILE__));
40
  define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
41
 
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: 4.8.2
10
- Stable tag: 1.9.7
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -243,6 +243,9 @@ All script, style and body tags are stripped from html emails.
243
  Attachments are now processed in the order they were attached.
244
 
245
  == CHANGELOG ==
 
 
 
246
  = 1.9.7 (2017-10-19) =
247
  * Fix: more robustness if iconv fails
248
 
@@ -1574,3 +1577,4 @@ plugin. And the rest is history :)
1574
  *
1575
  = 0.1 - 2004-06 =
1576
  * First release
 
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 4.8.2
10
+ Stable tag: 1.9.8
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
243
  Attachments are now processed in the order they were attached.
244
 
245
  == CHANGELOG ==
246
+ = 1.9.8 (2017-10-23) =
247
+ * Fix: check that global is initialized before using
248
+
249
  = 1.9.7 (2017-10-19) =
250
  * Fix: more robustness if iconv fails
251
 
1577
  *
1578
  = 0.1 - 2004-06 =
1579
  * First release
1580
+