Postie - Version 1.8.16

Version Description

(2016-11-03) = * Fix bug where postie_place_media_before and postie_place_media_after were being called incorrectly.

Download this release

Release Info

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

Code changes from version 1.8.15 to 1.8.16

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-functions.php +6 -6
  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.15 (2016-11-02) =
36
  * Fix bug where inline images were not being replaced correctly if WordPress changed the name of the attachment via sanitize_file_name()
37
 
32
  Attachments are now processed in the order they were attached.
33
 
34
  == CHANGELOG ==
35
+ = 1.8.16 (2016-11-03) =
36
+ * Fix bug where postie_place_media_before and postie_place_media_after were being called incorrectly.
37
+
38
  = 1.8.15 (2016-11-02) =
39
  * Fix bug where inline images were not being replaced correctly if WordPress changed the name of the attachment via sanitize_file_name()
40
 
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.6.1
9
- Stable tag: 1.8.15
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.6.1
9
+ Stable tag: 1.8.16
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 1526975 2016-11-02 20:48:16Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
@@ -223,9 +223,9 @@ function filter_AttachmentTemplates($content, $mimeDecodedEmail, $post_id, $conf
223
  } else {
224
  $template = $attachment['template'];
225
  if ($config['images_append']) {
226
- $template = apply_filters('postie_place_media_before', $template, $attachment['wp_id']);
227
- } else {
228
  $template = apply_filters('postie_place_media_after', $template, $attachment['wp_id']);
 
 
229
  }
230
  DebugEcho("filter_AttachmentTemplates: post filter '$template'");
231
  $html .= $template;
@@ -245,9 +245,9 @@ function filter_AttachmentTemplates($content, $mimeDecodedEmail, $post_id, $conf
245
  } else {
246
  $template = $attachment['template'];
247
  if ($config['images_append']) {
248
- $template = apply_filters('postie_place_media_before', $template, $attachment['wp_id']);
249
- } else {
250
  $template = apply_filters('postie_place_media_after', $template, $attachment['wp_id']);
 
 
251
  }
252
  DebugEcho("filter_AttachmentTemplates: post filter (alt) '$template'");
253
  $html .= $template;
@@ -2063,7 +2063,7 @@ function filter_ReplaceInlineImage($content, &$email, $config) {
2063
  } else {
2064
  $template = $inlineImage['template'];
2065
  }
2066
- $inlinemarker = '<:inline ' . $inlineImage['filename'] . ' inline:>';//use the original non-sanitized name
2067
  if (false !== stripos($content, $inlinemarker)) {
2068
  DebugEcho('filter_ReplaceInlineImage: ' . $inlineImage['filename']);
2069
  $content = str_ireplace($inlinemarker, $template, $content);
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1527513 2016-11-03 14:57:54Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
223
  } else {
224
  $template = $attachment['template'];
225
  if ($config['images_append']) {
 
 
226
  $template = apply_filters('postie_place_media_after', $template, $attachment['wp_id']);
227
+ } else {
228
+ $template = apply_filters('postie_place_media_before', $template, $attachment['wp_id']);
229
  }
230
  DebugEcho("filter_AttachmentTemplates: post filter '$template'");
231
  $html .= $template;
245
  } else {
246
  $template = $attachment['template'];
247
  if ($config['images_append']) {
 
 
248
  $template = apply_filters('postie_place_media_after', $template, $attachment['wp_id']);
249
+ } else {
250
+ $template = apply_filters('postie_place_media_before', $template, $attachment['wp_id']);
251
  }
252
  DebugEcho("filter_AttachmentTemplates: post filter (alt) '$template'");
253
  $html .= $template;
2063
  } else {
2064
  $template = $inlineImage['template'];
2065
  }
2066
+ $inlinemarker = '<:inline ' . $inlineImage['filename'] . ' inline:>'; //use the original non-sanitized name
2067
  if (false !== stripos($content, $inlinemarker)) {
2068
  DebugEcho('filter_ReplaceInlineImage: ' . $inlineImage['filename']);
2069
  $content = str_ireplace($inlinemarker, $template, $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.15
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1526978 2016-11-02 20:50:22Z 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.15');
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.16
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1527514 2016-11-03 14:59:02Z 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.16');
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.6.1
9
- Stable tag: 1.8.15
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -240,6 +240,9 @@ All script, style and body tags are stripped from html emails.
240
  Attachments are now processed in the order they were attached.
241
 
242
  == CHANGELOG ==
 
 
 
243
  = 1.8.15 (2016-11-02) =
244
  * Fix bug where inline images were not being replaced correctly if WordPress changed the name of the attachment via sanitize_file_name()
245
 
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.6.1
9
+ Stable tag: 1.8.16
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
240
  Attachments are now processed in the order they were attached.
241
 
242
  == CHANGELOG ==
243
+ = 1.8.16 (2016-11-03) =
244
+ * Fix bug where postie_place_media_before and postie_place_media_after were being called incorrectly.
245
+
246
  = 1.8.15 (2016-11-02) =
247
  * Fix bug where inline images were not being replaced correctly if WordPress changed the name of the attachment via sanitize_file_name()
248