Postie - Version 1.7.2

Version Description

(2015-07-19) = * Add filter postie_gallery when generating gallery shortcode

Download this release

Release Info

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

Code changes from version 1.7.1 to 1.7.2

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-functions.php +3 -3
  4. postie.php +3 -3
  5. readme.txt +5 -2
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.1 (2015-07-16) =
31
  * Fixed issue where multiple custom taxonomy terms were not correctly being saved
32
 
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
+
33
  = 1.7.1 (2015-07-16) =
34
  * Fixed issue where multiple custom taxonomy terms were not correctly being saved
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.1
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.2
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 1200261 2015-07-16 15:39:01Z WayneAllen $
4
  */
5
 
6
  //to turn on debug output add the following line to wp-config.php
@@ -2499,10 +2499,10 @@ function filter_ReplaceImagePlaceHolders(&$content, $attachments, $config, $post
2499
  if ((count($images) > 0) && $config['auto_gallery']) {
2500
  $linktype = strtolower($config['auto_gallery_link']);
2501
  if ($linktype == 'default') {
2502
- $imageTemplate = '[gallery]';
2503
  } else {
2504
  DebugEcho("Auto gallery: link type $linktype");
2505
- $imageTemplate = "[gallery link='$linktype']";
2506
  }
2507
  if ($config['images_append']) {
2508
  $content .= "\n$imageTemplate";
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
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";
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.1
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -27,11 +27,11 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 1200261 2015-07-16 15:39:01Z WayneAllen $
31
  */
32
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
33
 
34
- define('POSTIE_VERSION', '1.7.1');
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.2
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
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
 
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.1
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.1 (2015-07-16) =
238
  * Fixed issue where multiple custom taxonomy terms were not correctly being saved
239
 
@@ -1195,4 +1198,4 @@ plugin. And the rest is history :)
1195
  * Cleaned up some pear stuff in install
1196
  *
1197
  = 0.1 - 2004-06 =
1198
- * First release
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
  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
+
240
  = 1.7.1 (2015-07-16) =
241
  * Fixed issue where multiple custom taxonomy terms were not correctly being saved
242
 
1198
  * Cleaned up some pear stuff in install
1199
  *
1200
  = 0.1 - 2004-06 =
1201
+ * First release