Postie - Version 1.8.37

Version Description

(2017-04-05) = * Remove DateTimeImmutable references to be compatible with old versions of PHP

Download this release

Release Info

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

Code changes from version 1.8.36 to 1.8.37

config_form_server.php CHANGED
@@ -55,8 +55,8 @@
55
  </td>
56
  </tr>
57
 
58
- <?php echo BuildBooleanSelect(__("Ignore Email Date", 'postie'), 'postie-settings[ignore_email_date]', $ignore_email_date, __("If set the email date will be ignored and the post will be published with the system time. If cleared the 'From' date in the email will be used as the post date.", 'postie')); ?>
59
- <?php echo BuildBooleanSelect(__("Use Postie Time Correction", 'postie'), 'postie-settings[use_time_offset]', $use_time_offset, __("If set adjust the time according to Postie Time Correction otherwise use the date provided by the email.", 'postie')); ?>
60
 
61
  <tr>
62
  <th scope="row"><?php _e('Postie Time Correction', 'postie') ?></th>
55
  </td>
56
  </tr>
57
 
58
+ <?php echo BuildBooleanSelect(__("Ignore Email Date", 'postie'), 'postie-settings[ignore_email_date]', $ignore_email_date, __("If set to 'Yes' the email date will be ignored and the post will be published with the system time. If set to 'No' the date in the email will be used as the post date.", 'postie')); ?>
59
+ <?php echo BuildBooleanSelect(__("Use Postie Time Correction", 'postie'), 'postie-settings[use_time_offset]', $use_time_offset, __("If set to 'Yes' adjust the time according to Postie Time Correction otherwise use the date provided by the email.", 'postie')); ?>
60
 
61
  <tr>
62
  <th scope="row"><?php _e('Postie Time Correction', 'postie') ?></th>
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.8.36 (2017-04-05) =
39
  * Allow user to specify a IMAP folder (supplied by Alejandro Liu)
40
  * Fix postie_file_added action
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.8.37 (2017-04-05) =
39
+ * Remove DateTimeImmutable references to be compatible with old versions of PHP
40
+
41
  = 1.8.36 (2017-04-05) =
42
  * Allow user to specify a IMAP folder (supplied by Alejandro Liu)
43
  * Fix postie_file_added action
docs/Postie.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7.3
9
- Stable tag: 1.8.36
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7.3
9
+ Stable tag: 1.8.37
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
postie-functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /*
3
- $Id: postie-functions.php 1630360 2017-04-05 16:03:31Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
@@ -1558,11 +1558,11 @@ function tag_Delay(&$content, $message_date = NULL, $offset = 0) {
1558
  DebugEcho("tag_Delay: timezone: $tzs");
1559
 
1560
  if (empty($message_date)) {
1561
- $dateInSeconds = new DateTimeImmutable(current_time('mysql'));
1562
  DebugEcho("tag_Delay: using current date: " . $dateInSeconds->format(DATE_RFC2822));
1563
  } else {
1564
  DebugEcho("tag_Delay: using message date(1): $message_date");
1565
- $dateInSeconds = new DateTimeImmutable($message_date);
1566
  DebugEcho("tag_Delay: using message date(2): " . $dateInSeconds->format(DATE_RFC2822));
1567
  }
1568
 
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1630502 2017-04-05 20:24:37Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
1558
  DebugEcho("tag_Delay: timezone: $tzs");
1559
 
1560
  if (empty($message_date)) {
1561
+ $dateInSeconds = new DateTime(current_time('mysql'));
1562
  DebugEcho("tag_Delay: using current date: " . $dateInSeconds->format(DATE_RFC2822));
1563
  } else {
1564
  DebugEcho("tag_Delay: using message date(1): $message_date");
1565
+ $dateInSeconds = new DateTime($message_date);
1566
  DebugEcho("tag_Delay: using message date(2): " . $dateInSeconds->format(DATE_RFC2822));
1567
  }
1568
 
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.8.36
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1630364 2017-04-05 16:08:01Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
@@ -60,7 +60,7 @@ if (!function_exists('file_get_html')) {
60
  require_once (plugin_dir_path(__FILE__) . 'simple_html_dom.php');
61
  }
62
 
63
- define('POSTIE_VERSION', '1.8.36');
64
  define("POSTIE_ROOT", dirname(__FILE__));
65
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
66
 
@@ -306,7 +306,3 @@ function check_postie() {
306
  //error_log("check_postie");
307
  postie_get_mail();
308
  }
309
-
310
-
311
-
312
-
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.8.37
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1630502 2017-04-05 20:24:37Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
60
  require_once (plugin_dir_path(__FILE__) . 'simple_html_dom.php');
61
  }
62
 
63
+ define('POSTIE_VERSION', '1.8.37');
64
  define("POSTIE_ROOT", dirname(__FILE__));
65
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
66
 
306
  //error_log("check_postie");
307
  postie_get_mail();
308
  }
 
 
 
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7.3
9
- Stable tag: 1.8.36
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -242,6 +242,9 @@ All script, style and body tags are stripped from html emails.
242
  Attachments are now processed in the order they were attached.
243
 
244
  == CHANGELOG ==
 
 
 
245
  = 1.8.36 (2017-04-05) =
246
  * Allow user to specify a IMAP folder (supplied by Alejandro Liu)
247
  * Fix postie_file_added action
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7.3
9
+ Stable tag: 1.8.37
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
242
  Attachments are now processed in the order they were attached.
243
 
244
  == CHANGELOG ==
245
+ = 1.8.37 (2017-04-05) =
246
+ * Remove DateTimeImmutable references to be compatible with old versions of PHP
247
+
248
  = 1.8.36 (2017-04-05) =
249
  * Allow user to specify a IMAP folder (supplied by Alejandro Liu)
250
  * Fix postie_file_added action