WordPress.org

Make WordPress Core

Ticket #9969: comment-moderation-headers.diff

File comment-moderation-headers.diff, 762 bytes (added by mtdewvirus, 9 years ago)
  • pluggable.php

     
    10781078
    10791079        $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title );
    10801080        $admin_email = get_option('admin_email');
     1081        $message_headers = '';
    10811082
    10821083        $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id);
    10831084        $subject = apply_filters('comment_moderation_subject', $subject, $comment_id);
     1085        $message_headers = apply_filters('comment_moderation_headers', $message_headers);
    10841086
    1085         @wp_mail($admin_email, $subject, $notify_message);
     1087        @wp_mail($admin_email, $subject, $notify_message, $message_headers);
    10861088
    10871089        return true;
    10881090}