From c652a8f9e32147ad58243cfe5c65eb14fb520286 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 29 May 2009 20:00:06 +0000 Subject: [PATCH] Add comment_moderation_headers filter. Props mtdewvirus. fixes #9969 git-svn-id: http://svn.automattic.com/wordpress/trunk@11489 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 8044ed2030..306bd3f4a4 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1078,11 +1078,13 @@ function wp_notify_moderator($comment_id) { $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title ); $admin_email = get_option('admin_email'); + $message_headers = ''; $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id); $subject = apply_filters('comment_moderation_subject', $subject, $comment_id); + $message_headers = apply_filters('comment_moderation_headers', $message_headers); - @wp_mail($admin_email, $subject, $notify_message); + @wp_mail($admin_email, $subject, $notify_message, $message_headers); return true; }