Postie - Version 1.7.3

Version Description

(2015-07-22) = * Fix parameter order bug in postie_gallery filter

Download this release

Release Info

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

Code changes from version 1.7.2 to 1.7.3

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-functions.php +6 -4
  4. postie.php +3 -3
  5. readme.txt +4 -1
docs/Changes.txt CHANGED
@@ -27,6 +27,9 @@ All script, style and body tags are stripped from html emails.
27
  Attachments are now processed in the order they were attached.
28
 
29
  == CHANGELOG ==
 
 
 
30
  = 1.7.2 (2015-07-19) =
31
  * Add filter postie_gallery when generating gallery shortcode
32
 
27
  Attachments are now processed in the order they were attached.
28
 
29
  == CHANGELOG ==
30
+ = 1.7.3 (2015-07-22) =
31
+ * Fix parameter order bug in postie_gallery filter
32
+
33
  = 1.7.2 (2015-07-19) =
34
  * Add filter postie_gallery when generating gallery shortcode
35
 
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.2.2
9
- Stable tag: 1.7.2
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.2.2
9
+ Stable tag: 1.7.3
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 1202045 2015-07-20 01:52:51Z WayneAllen $
4
  */
5
 
6
  //to turn on debug output add the following line to wp-config.php
@@ -2498,12 +2498,14 @@ function filter_ReplaceImagePlaceHolders(&$content, $attachments, $config, $post
2498
 
2499
  if ((count($images) > 0) && $config['auto_gallery']) {
2500
  $linktype = strtolower($config['auto_gallery_link']);
 
 
2501
  if ($linktype == 'default') {
2502
- $imageTemplate = apply_filters('postie_gallery', $post_id, '[gallery]');
2503
  } else {
2504
- DebugEcho("Auto gallery: link type $linktype");
2505
- $imageTemplate = apply_filters('postie_gallery', $post_id, "[gallery link='$linktype']");
2506
  }
 
2507
  if ($config['images_append']) {
2508
  $content .= "\n$imageTemplate";
2509
  DebugEcho("Auto gallery: append");
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1204342 2015-07-22 22:30:39Z WayneAllen $
4
  */
5
 
6
  //to turn on debug output add the following line to wp-config.php
2498
 
2499
  if ((count($images) > 0) && $config['auto_gallery']) {
2500
  $linktype = strtolower($config['auto_gallery_link']);
2501
+ DebugEcho("Auto gallery: link type $linktype");
2502
+ DebugFiltersFor('postie_gallery');
2503
  if ($linktype == 'default') {
2504
+ $imageTemplate = apply_filters('postie_gallery', '[gallery]', $post_id);
2505
  } else {
2506
+ $imageTemplate = apply_filters('postie_gallery', "[gallery link='$linktype']", $post_id);
 
2507
  }
2508
+ DebugEcho("Auto gallery: template '$imageTemplate'");
2509
  if ($config['images_append']) {
2510
  $content .= "\n$imageTemplate";
2511
  DebugEcho("Auto gallery: append");
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Signifigantly upgrades the Post by Email features of Word Press.
7
- Version: 1.7.2
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -27,11 +27,11 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 1202056 2015-07-20 03:25:21Z WayneAllen $
31
  */
32
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
33
 
34
- define('POSTIE_VERSION', '1.7.2');
35
  define("POSTIE_ROOT", dirname(__FILE__));
36
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
37
 
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Signifigantly upgrades the Post by Email features of Word Press.
7
+ Version: 1.7.3
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 1204342 2015-07-22 22:30:39Z WayneAllen $
31
  */
32
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
33
 
34
+ define('POSTIE_VERSION', '1.7.3');
35
  define("POSTIE_ROOT", dirname(__FILE__));
36
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
37
 
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.2.2
9
- Stable tag: 1.7.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -234,6 +234,9 @@ All script, style and body tags are stripped from html emails.
234
  Attachments are now processed in the order they were attached.
235
 
236
  == CHANGELOG ==
 
 
 
237
  = 1.7.2 (2015-07-19) =
238
  * Add filter postie_gallery when generating gallery shortcode
239
 
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.2.2
9
+ Stable tag: 1.7.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
234
  Attachments are now processed in the order they were attached.
235
 
236
  == CHANGELOG ==
237
+ = 1.7.3 (2015-07-22) =
238
+ * Fix parameter order bug in postie_gallery filter
239
+
240
  = 1.7.2 (2015-07-19) =
241
  * Add filter postie_gallery when generating gallery shortcode
242