Version Description
(2017.08.10) = * Fix: Incorrectly looking for links in html head style blocks
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.4 |
Comparing to | |
See all releases |
Code changes from version 1.9.3 to 1.9.4
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- postie-filters.php +29 -5
- postie.php +3 -3
- readme.txt +4 -1
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.9.3 (2017.08.04) =
|
39 |
* Feature: Add "every 2 hours" option
|
40 |
* Fix: Include actual response when IMAP authentication fails
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
38 |
+
= 1.9.4 (2017.08.10) =
|
39 |
+
* Fix: Incorrectly looking for links in html head style blocks
|
40 |
+
|
41 |
= 1.9.3 (2017.08.04) =
|
42 |
* Feature: Add "every 2 hours" option
|
43 |
* Fix: Include actual response when IMAP authentication fails
|
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.8
|
9 |
-
Stable tag: 1.9.
|
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.8
|
9 |
+
Stable tag: 1.9.4
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
postie-filters.php
CHANGED
@@ -333,14 +333,38 @@ function filter_StripPGP($content) {
|
|
333 |
}
|
334 |
|
335 |
function filter_Linkify($text) {
|
336 |
-
|
|
|
|
|
337 |
$oe = _wp_oembed_get_object();
|
338 |
|
339 |
$al = new PostieAutolink();
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
}
|
345 |
|
346 |
/**
|
333 |
}
|
334 |
|
335 |
function filter_Linkify($text) {
|
336 |
+
global $g_postie;
|
337 |
+
|
338 |
+
DebugEcho("filter_linkify: begin");
|
339 |
$oe = _wp_oembed_get_object();
|
340 |
|
341 |
$al = new PostieAutolink();
|
342 |
+
|
343 |
+
if (postie_is_html($text)) {
|
344 |
+
$html = $g_postie->load_html($text);
|
345 |
+
if ($html !== false) {
|
346 |
+
$es = $html->find('body');
|
347 |
+
if (!empty($es)) {
|
348 |
+
DebugEcho("filter_linkify: found body");
|
349 |
+
$frag = $al->autolink($es[0]->innertext, $oe);
|
350 |
+
$frag = $al->autolink_email($frag);
|
351 |
+
$es[0]->innertext = $frag;
|
352 |
+
return $html->__toString();
|
353 |
+
} else {
|
354 |
+
DebugEcho("filter_linkify: no body");
|
355 |
+
$text = $al->autolink($text, $oe);
|
356 |
+
return $al->autolink_email($text);
|
357 |
+
}
|
358 |
+
} else {
|
359 |
+
DebugEcho("filter_linkify: html pase failed");
|
360 |
+
$text = $al->autolink($text, $oe);
|
361 |
+
return $al->autolink_email($text);
|
362 |
+
}
|
363 |
+
} else {
|
364 |
+
DebugEcho("filter_linkify: plain text");
|
365 |
+
$text = $al->autolink($text, $oe);
|
366 |
+
return $al->autolink_email($text);
|
367 |
+
}
|
368 |
}
|
369 |
|
370 |
/**
|
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.9.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
@@ -28,14 +28,14 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
-
define('POSTIE_VERSION', '1.9.
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
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.9.4
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 1711769 2017-08-10 20:03:32Z WayneAllen $
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
+
define('POSTIE_VERSION', '1.9.4');
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
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.8
|
9 |
-
Stable tag: 1.9.
|
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.9.3 (2017.08.04) =
|
246 |
* Feature: Add "every 2 hours" option
|
247 |
* Fix: Include actual response when IMAP authentication fails
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires at least: 3.3.0
|
8 |
Tested up to: 4.8
|
9 |
+
Stable tag: 1.9.4
|
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.9.4 (2017.08.10) =
|
246 |
+
* Fix: Incorrectly looking for links in html head style blocks
|
247 |
+
|
248 |
= 1.9.3 (2017.08.04) =
|
249 |
* Feature: Add "every 2 hours" option
|
250 |
* Fix: Include actual response when IMAP authentication fails
|