Add comment_moderation_headers filter. Props mtdewvirus. fixes #9969

git-svn-id: https://develop.svn.wordpress.org/trunk@11489 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-29 20:00:06 +00:00
parent 48eb83e12b
commit 8abf3d95f6

View File

@ -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;
}