Always decode special characters for email subjects.

props tlovett1, jeremyfelt.
fixes #25346.


git-svn-id: https://develop.svn.wordpress.org/trunk@27801 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-03-28 02:43:04 +00:00
parent 65007189cf
commit 98ac075d8b
7 changed files with 13 additions and 13 deletions

View File

@@ -1168,7 +1168,7 @@ function wp_notify_postauthor( $comment_id, $deprecated = null ) {
$message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment_id );
foreach ( $emails as $email ) {
@wp_mail( $email, $subject, $notify_message, $message_headers );
@wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers );
}
return true;
@@ -1255,7 +1255,7 @@ function wp_notify_moderator($comment_id) {
$message_headers = apply_filters( 'comment_moderation_headers', $message_headers, $comment_id );
foreach ( $emails as $email ) {
@wp_mail( $email, $subject, $notify_message, $message_headers );
@wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers );
}
return true;