mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00: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
@ -156,6 +156,10 @@ for ( $i = 1; $i <= $count; $i++ ) {
|
|||||||
}
|
}
|
||||||
$content = trim($content);
|
$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") ) {
|
if ( false !== stripos($content_transfer_encoding, "quoted-printable") ) {
|
||||||
$content = quoted_printable_decode($content);
|
$content = quoted_printable_decode($content);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user