mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Add a filter to allow post-by-email plugins better control over the content.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c9c4d306ef
commit
48f9d53e41
@ -142,8 +142,8 @@ for ( $i = 1; $i <= $count; $i++ ) {
|
||||
$post_status = 'pending';
|
||||
}
|
||||
|
||||
$subject = trim($subject);
|
||||
|
||||
$subject = trim($subject);
|
||||
|
||||
if ( $content_type == 'multipart/alternative' ) {
|
||||
$content = explode('--'.$boundary, $content);
|
||||
$content = $content[2];
|
||||
@ -156,6 +156,10 @@ for ( $i = 1; $i <= $count; $i++ ) {
|
||||
}
|
||||
$content = trim($content);
|
||||
|
||||
//Give Post-By-Email extending plugins full access to the content
|
||||
//Either the raw content or the content of the last quoted-printable section
|
||||
$content = apply_filters('wp_mail_original_content', $content);
|
||||
|
||||
if ( false !== stripos($content_transfer_encoding, "quoted-printable") ) {
|
||||
$content = quoted_printable_decode($content);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user