Version Description
(2015-09-14) = * revert tags logic as html version was messing up the content. * revert video linkify logic as html version was messing up the content. * revert linkify logic as html version was messing up the content.
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.8 to 1.7.9
- docs/Changes.txt +5 -0
- docs/Postie.txt +1 -1
- postie-functions.php +34 -39
- postie.php +3 -3
- readme.txt +6 -1
docs/Changes.txt
CHANGED
@@ -27,6 +27,11 @@ 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.8 (2015-09-08) =
|
31 |
* Remove mbstring admin message. Added fallback if mbstring is not installed
|
32 |
* More explanation for signature regex
|
27 |
Attachments are now processed in the order they were attached.
|
28 |
|
29 |
== CHANGELOG ==
|
30 |
+
= 1.7.9 (2015-09-14) =
|
31 |
+
* revert tags logic as html version was messing up the content.
|
32 |
+
* revert video linkify logic as html version was messing up the content.
|
33 |
+
* revert linkify logic as html version was messing up the content.
|
34 |
+
|
35 |
= 1.7.8 (2015-09-08) =
|
36 |
* Remove mbstring admin message. Added fallback if mbstring is not installed
|
37 |
* More explanation for signature regex
|
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.3
|
9 |
-
Stable tag: 1.7.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Text Domain: postie
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires at least: 3.3.0
|
8 |
Tested up to: 4.3
|
9 |
+
Stable tag: 1.7.9
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Text Domain: postie
|
postie-functions.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
$Id: postie-functions.php
|
4 |
*/
|
5 |
|
6 |
//to turn on debug output add the following line to wp-config.php
|
@@ -519,19 +519,17 @@ function tag_PostType(&$subject, $postmodifiers, $config) {
|
|
519 |
function filter_Linkify($text) {
|
520 |
# It turns urls into links, and video urls into embedded players
|
521 |
//DebugEcho("begin: filter_linkify");
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
}
|
534 |
-
|
535 |
//DebugEcho("end: filter_linkify");
|
536 |
return $ret;
|
537 |
}
|
@@ -543,17 +541,15 @@ function LoadDOM($text) {
|
|
543 |
function filter_Videos($text, $shortcode = false) {
|
544 |
# It turns urls into links, and video urls into embedded players
|
545 |
//DebugEcho("begin: filter_Videos");
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
}
|
556 |
-
|
557 |
//DebugEcho("end: filter_Videos");
|
558 |
return $ret;
|
559 |
}
|
@@ -612,8 +608,7 @@ function make_links($text) {
|
|
612 |
'<a\\1 >',
|
613 |
"stripslashes((strlen('\\2')>0?'\\1<a href=\"http://\\2\">\\2</a>\\3':'\\0'))",
|
614 |
"stripslashes((strlen('\\2')>0?'<a href=\"mailto:\\0\">\\0</a>':'\\0'))"
|
615 |
-
), $text
|
616 |
-
);
|
617 |
}
|
618 |
|
619 |
/* we check whether or not the email is a forwards or a redirect. If it is
|
@@ -2633,18 +2628,18 @@ function GetSubject(&$mimeDecodedEmail, &$content, $config) {
|
|
2633 |
function tag_Tags(&$content, $defaultTags) {
|
2634 |
$post_tags = array();
|
2635 |
|
2636 |
-
$html = LoadDOM($content);
|
2637 |
-
if ($html !== false) {
|
2638 |
-
DebugEcho("tag_Tags: html detected");
|
2639 |
-
foreach ($html->find('text') as $element) {
|
2640 |
-
$e = $element->innertext;
|
2641 |
-
$post_tags = array_merge($post_tags, tag_TagsWorker($e));
|
2642 |
-
$element->innertext = $e;
|
2643 |
-
}
|
2644 |
-
$content = $html->save();
|
2645 |
-
} else {
|
2646 |
-
|
2647 |
-
}
|
2648 |
|
2649 |
if (count($post_tags) == 0 && is_array($defaultTags)) {
|
2650 |
$post_tags = $defaultTags;
|
1 |
<?php
|
2 |
/*
|
3 |
+
$Id: postie-functions.php 1245362 2015-09-14 18:06:53Z WayneAllen $
|
4 |
*/
|
5 |
|
6 |
//to turn on debug output add the following line to wp-config.php
|
519 |
function filter_Linkify($text) {
|
520 |
# It turns urls into links, and video urls into embedded players
|
521 |
//DebugEcho("begin: filter_linkify");
|
522 |
+
// $html = LoadDOM($text);
|
523 |
+
// if ($html) {
|
524 |
+
// //DebugEcho("filter_linkify: " . $html->save());
|
525 |
+
// foreach ($html->find('text') as $element) {
|
526 |
+
// //DebugEcho("filter_linkify: " . $element->innertext);
|
527 |
+
// $element->innertext = make_links($element->innertext);
|
528 |
+
// }
|
529 |
+
// $ret = $html->save();
|
530 |
+
// } else {
|
531 |
+
$ret = make_links($text);
|
532 |
+
// }
|
|
|
|
|
533 |
//DebugEcho("end: filter_linkify");
|
534 |
return $ret;
|
535 |
}
|
541 |
function filter_Videos($text, $shortcode = false) {
|
542 |
# It turns urls into links, and video urls into embedded players
|
543 |
//DebugEcho("begin: filter_Videos");
|
544 |
+
// $html = LoadDOM($text);
|
545 |
+
// if ($html) {
|
546 |
+
// foreach ($html->find('text') as $element) {
|
547 |
+
// $element->innertext = linkifyVideo($element->innertext, $shortcode);
|
548 |
+
// }
|
549 |
+
// $ret = $html->save();
|
550 |
+
// } else {
|
551 |
+
$ret = linkifyVideo($text, $shortcode);
|
552 |
+
// }
|
|
|
|
|
553 |
//DebugEcho("end: filter_Videos");
|
554 |
return $ret;
|
555 |
}
|
608 |
'<a\\1 >',
|
609 |
"stripslashes((strlen('\\2')>0?'\\1<a href=\"http://\\2\">\\2</a>\\3':'\\0'))",
|
610 |
"stripslashes((strlen('\\2')>0?'<a href=\"mailto:\\0\">\\0</a>':'\\0'))"
|
611 |
+
), $text);
|
|
|
612 |
}
|
613 |
|
614 |
/* we check whether or not the email is a forwards or a redirect. If it is
|
2628 |
function tag_Tags(&$content, $defaultTags) {
|
2629 |
$post_tags = array();
|
2630 |
|
2631 |
+
// $html = LoadDOM($content);
|
2632 |
+
// if ($html !== false) {
|
2633 |
+
// DebugEcho("tag_Tags: html detected");
|
2634 |
+
// foreach ($html->find('text') as $element) {
|
2635 |
+
// $e = $element->innertext;
|
2636 |
+
// $post_tags = array_merge($post_tags, tag_TagsWorker($e));
|
2637 |
+
// $element->innertext = $e;
|
2638 |
+
// }
|
2639 |
+
// $content = $html->save();
|
2640 |
+
// } else {
|
2641 |
+
$post_tags = tag_TagsWorker($content);
|
2642 |
+
// }
|
2643 |
|
2644 |
if (count($post_tags) == 0 && is_array($defaultTags)) {
|
2645 |
$post_tags = $defaultTags;
|
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.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL2
|
@@ -27,11 +27,11 @@
|
|
27 |
*/
|
28 |
|
29 |
/*
|
30 |
-
$Id: postie.php
|
31 |
*/
|
32 |
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
|
33 |
|
34 |
-
define('POSTIE_VERSION', '1.7.
|
35 |
define("POSTIE_ROOT", dirname(__FILE__));
|
36 |
define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
37 |
define('POSTIE_SLUG', 'postie');
|
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.9
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL2
|
27 |
*/
|
28 |
|
29 |
/*
|
30 |
+
$Id: postie.php 1245362 2015-09-14 18:06:53Z WayneAllen $
|
31 |
*/
|
32 |
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
|
33 |
|
34 |
+
define('POSTIE_VERSION', '1.7.9');
|
35 |
define("POSTIE_ROOT", dirname(__FILE__));
|
36 |
define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
37 |
define('POSTIE_SLUG', 'postie');
|
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.3
|
9 |
-
Stable tag: 1.7.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Text Domain: postie
|
@@ -236,6 +236,11 @@ All script, style and body tags are stripped from html emails.
|
|
236 |
Attachments are now processed in the order they were attached.
|
237 |
|
238 |
== CHANGELOG ==
|
|
|
|
|
|
|
|
|
|
|
239 |
= 1.7.8 (2015-09-08) =
|
240 |
* Remove mbstring admin message. Added fallback if mbstring is not installed
|
241 |
* More explanation for signature regex
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires at least: 3.3.0
|
8 |
Tested up to: 4.3
|
9 |
+
Stable tag: 1.7.9
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Text Domain: postie
|
236 |
Attachments are now processed in the order they were attached.
|
237 |
|
238 |
== CHANGELOG ==
|
239 |
+
= 1.7.9 (2015-09-14) =
|
240 |
+
* revert tags logic as html version was messing up the content.
|
241 |
+
* revert video linkify logic as html version was messing up the content.
|
242 |
+
* revert linkify logic as html version was messing up the content.
|
243 |
+
|
244 |
= 1.7.8 (2015-09-08) =
|
245 |
* Remove mbstring admin message. Added fallback if mbstring is not installed
|
246 |
* More explanation for signature regex
|