Version Description
(2015-01-30) = * Call wp_set_current_user() so that other WP functions that depend on the current user work correctly. (custom taxonomy) * Only do image template processing if the preferred text type is plain * Removed http_response_code() call since it is only supported by PHP 5.4 or newer.
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.6.11 |
Comparing to | |
See all releases |
Code changes from version 1.6.10 to 1.6.11
- docs/Changes.txt +5 -0
- docs/Postie.txt +1 -1
- get_mail.php +4 -1
- postie-functions.php +15 -12
- 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.6.10 (2015-1-2) =
|
31 |
* Testing against 4.1
|
32 |
* New icon in admin
|
27 |
Attachments are now processed in the order they were attached.
|
28 |
|
29 |
== CHANGELOG ==
|
30 |
+
= 1.6.11 (2015-01-30) =
|
31 |
+
* Call wp_set_current_user() so that other WP functions that depend on the current user work correctly. (custom taxonomy)
|
32 |
+
* Only do image template processing if the preferred text type is plain
|
33 |
+
* Removed http_response_code() call since it is only supported by PHP 5.4 or newer.
|
34 |
+
|
35 |
= 1.6.10 (2015-1-2) =
|
36 |
* Testing against 4.1
|
37 |
* New icon in admin
|
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.0
|
8 |
Tested up to: 4.1
|
9 |
-
Stable tag: 1.6.
|
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.0
|
8 |
Tested up to: 4.1
|
9 |
+
Stable tag: 1.6.11
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
get_mail.php
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
<?php
|
2 |
-
http_response_code(403);
|
|
|
|
|
|
|
3 |
?>
|
4 |
<html>
|
5 |
<head>
|
1 |
<?php
|
2 |
+
//http_response_code(403);
|
3 |
+
$protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');
|
4 |
+
header("$protocol 403 Forbidden");
|
5 |
+
$GLOBALS['http_response_code'] = $code;
|
6 |
?>
|
7 |
<html>
|
8 |
<head>
|
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
|
@@ -385,19 +385,20 @@ function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $
|
|
385 |
DebugEcho("post end: $content");
|
386 |
}
|
387 |
|
388 |
-
|
389 |
-
|
390 |
-
DebugEcho("post body img: $content");
|
391 |
-
}
|
392 |
-
|
393 |
-
if ($post_excerpt) {
|
394 |
-
filter_ReplaceImagePlaceHolders($post_excerpt, $attachments["html"], $config, $id, "#eimg%#", false);
|
395 |
if ($fulldebug) {
|
396 |
-
DebugEcho("post
|
397 |
}
|
398 |
-
}
|
399 |
|
400 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
|
402 |
if (trim($subject) == "") {
|
403 |
$subject = $config['default_title'];
|
@@ -647,7 +648,7 @@ function getPostAuthorDetails(&$subject, &$content, &$mimeDecodedEmail) {
|
|
647 |
DebugEcho("Fwd: detected");
|
648 |
$subject = trim($matches[2]);
|
649 |
if (preg_match("/\nfrom:(.*?)\n/i", $content, $matches)) {
|
650 |
-
$
|
651 |
$mimeDecodedEmail->headers['from'] = $theAuthor;
|
652 |
}
|
653 |
//TODO dosen't always work with HTML
|
@@ -1451,6 +1452,8 @@ function ValidatePoster(&$mimeDecodedEmail, $config) {
|
|
1451 |
}
|
1452 |
return '';
|
1453 |
}
|
|
|
|
|
1454 |
return $poster;
|
1455 |
}
|
1456 |
|
1 |
<?php
|
2 |
/*
|
3 |
+
$Id: postie-functions.php 1068958 2015-01-16 00:34:02Z WayneAllen $
|
4 |
*/
|
5 |
|
6 |
//to turn on debug output add the following line to wp-config.php
|
385 |
DebugEcho("post end: $content");
|
386 |
}
|
387 |
|
388 |
+
if ($config['prefer_text_type'] == 'plain') {
|
389 |
+
filter_ReplaceImagePlaceHolders($content, $attachments["html"], $config, $id, $config['image_placeholder'], true);
|
|
|
|
|
|
|
|
|
|
|
390 |
if ($fulldebug) {
|
391 |
+
DebugEcho("post body ReplaceImagePlaceHolders: $content");
|
392 |
}
|
|
|
393 |
|
394 |
+
if ($post_excerpt) {
|
395 |
+
filter_ReplaceImagePlaceHolders($post_excerpt, $attachments["html"], $config, $id, "#eimg%#", false);
|
396 |
+
DebugEcho("excerpt: $post_excerpt");
|
397 |
+
if ($fulldebug) {
|
398 |
+
DebugEcho("post excerpt ReplaceImagePlaceHolders: $content");
|
399 |
+
}
|
400 |
+
}
|
401 |
+
}
|
402 |
|
403 |
if (trim($subject) == "") {
|
404 |
$subject = $config['default_title'];
|
648 |
DebugEcho("Fwd: detected");
|
649 |
$subject = trim($matches[2]);
|
650 |
if (preg_match("/\nfrom:(.*?)\n/i", $content, $matches)) {
|
651 |
+
$thFeAuthor = GetNameFromEmail($matches[1]);
|
652 |
$mimeDecodedEmail->headers['from'] = $theAuthor;
|
653 |
}
|
654 |
//TODO dosen't always work with HTML
|
1452 |
}
|
1453 |
return '';
|
1454 |
}
|
1455 |
+
wp_set_current_user($poster); //needed by some wp functions who check permissions for the logged in user
|
1456 |
+
|
1457 |
return $poster;
|
1458 |
}
|
1459 |
|
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.6.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://allens-home.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.6.
|
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.6.11
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://allens-home.com/
|
10 |
License: GPL2
|
27 |
*/
|
28 |
|
29 |
/*
|
30 |
+
$Id: postie.php 1079101 2015-01-30 16:45:46Z WayneAllen $
|
31 |
*/
|
32 |
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
|
33 |
|
34 |
+
define('POSTIE_VERSION', '1.6.11');
|
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.0
|
8 |
Tested up to: 4.1
|
9 |
-
Stable tag: 1.6.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -238,6 +238,11 @@ All script, style and body tags are stripped from html emails.
|
|
238 |
Attachments are now processed in the order they were attached.
|
239 |
|
240 |
== CHANGELOG ==
|
|
|
|
|
|
|
|
|
|
|
241 |
= 1.6.10 (2015-1-2) =
|
242 |
* Testing against 4.1
|
243 |
* New icon in admin
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires at least: 3.0
|
8 |
Tested up to: 4.1
|
9 |
+
Stable tag: 1.6.11
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
238 |
Attachments are now processed in the order they were attached.
|
239 |
|
240 |
== CHANGELOG ==
|
241 |
+
= 1.6.11 (2015-01-30) =
|
242 |
+
* Call wp_set_current_user() so that other WP functions that depend on the current user work correctly. (custom taxonomy)
|
243 |
+
* Only do image template processing if the preferred text type is plain
|
244 |
+
* Removed http_response_code() call since it is only supported by PHP 5.4 or newer.
|
245 |
+
|
246 |
= 1.6.10 (2015-1-2) =
|
247 |
* Testing against 4.1
|
248 |
* New icon in admin
|