Postie - Version 1.8.22

Version Description

(2016-12-07) = * Fix bug where Image Place Holder Tag setting was not respected

Download this release

Release Info

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

Code changes from version 1.8.21 to 1.8.22

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-functions.php +7 -2
  4. postie.php +3 -3
  5. readme.txt +4 -1
docs/Changes.txt CHANGED
@@ -32,6 +32,9 @@ All script, style and body tags are stripped from html emails.
32
  Attachments are now processed in the order they were attached.
33
 
34
  == CHANGELOG ==
 
 
 
35
  = 1.8.21 (2016-12-07) =
36
  * Clarified the behavior of the "Use custom image field for images" setting and moved it to the Image tab.
37
  * Clarified text on some settings.
32
  Attachments are now processed in the order they were attached.
33
 
34
  == CHANGELOG ==
35
+ = 1.8.22 (2016-12-07) =
36
+ * Fix bug where Image Place Holder Tag setting was not respected
37
+
38
  = 1.8.21 (2016-12-07) =
39
  * Clarified the behavior of the "Use custom image field for images" setting and moved it to the Image tab.
40
  * Clarified text on some settings.
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
9
- Stable tag: 1.8.21
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
9
+ Stable tag: 1.8.22
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 1547970 2016-12-07 19:11:20Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
@@ -2121,7 +2121,12 @@ function filter_ReplaceImagePlaceHolders_worker($content, &$attachment, $imagePa
2121
  }
2122
 
2123
  $matches = array();
2124
- $pattern = '/#img' . (string) ($startIndex + $currentIndex) . '\s?(caption=[\'"]?(.*?)[\'"]?)?#/iu';
 
 
 
 
 
2125
  DebugEcho("filter_ReplaceImagePlaceHolders_worker: pattern: $pattern");
2126
  preg_match_all($pattern, $content, $matches, PREG_SET_ORDER);
2127
  //DebugEcho($content);
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1548027 2016-12-07 19:33:59Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
2121
  }
2122
 
2123
  $matches = array();
2124
+ $pparts = explode('%', $imagePattern);
2125
+ if (count($pparts) != 2) {
2126
+ DebugEcho("filter_ReplaceImagePlaceHolders_worker: invalid image pattern: $imagePattern");
2127
+ return $content;
2128
+ }
2129
+ $pattern = '/' . $pparts[0] . (string) ($startIndex + $currentIndex) . '\s?(caption=[\'"]?(.*?)[\'"]?)?' . $pparts[1] . '/iu';
2130
  DebugEcho("filter_ReplaceImagePlaceHolders_worker: pattern: $pattern");
2131
  preg_match_all($pattern, $content, $matches, PREG_SET_ORDER);
2132
  //DebugEcho($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.8.21
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1547974 2016-12-07 19:12:46Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
@@ -49,7 +49,7 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/pPop3MailServer.php"
49
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib_autolink.php");
50
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
51
 
52
- define('POSTIE_VERSION', '1.8.21');
53
  define("POSTIE_ROOT", dirname(__FILE__));
54
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
55
 
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.22
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1548029 2016-12-07 19:35:22Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
49
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib_autolink.php");
50
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
51
 
52
+ define('POSTIE_VERSION', '1.8.22');
53
  define("POSTIE_ROOT", dirname(__FILE__));
54
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
55
 
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
9
- Stable tag: 1.8.21
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -239,6 +239,9 @@ All script, style and body tags are stripped from html emails.
239
  Attachments are now processed in the order they were attached.
240
 
241
  == CHANGELOG ==
 
 
 
242
  = 1.8.21 (2016-12-07) =
243
  * Clarified the behavior of the "Use custom image field for images" setting and moved it to the Image tab.
244
  * Clarified text on some settings.
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7
9
+ Stable tag: 1.8.22
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
239
  Attachments are now processed in the order they were attached.
240
 
241
  == CHANGELOG ==
242
+ = 1.8.22 (2016-12-07) =
243
+ * Fix bug where Image Place Holder Tag setting was not respected
244
+
245
  = 1.8.21 (2016-12-07) =
246
  * Clarified the behavior of the "Use custom image field for images" setting and moved it to the Image tab.
247
  * Clarified text on some settings.