Make WordPress Core

Ticket #8277: pluggable.diff

File pluggable.diff, 872 bytes (added by hetjens, 17 years ago)

Patch for the current trunk version

  • pluggable.php

     
    10611061        $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title );
    10621062        $admin_email = get_option('admin_email');
    10631063
     1064        $message_headers = "$from\n"
     1065                . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
     1066   
    10641067        $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id);
    10651068        $subject = apply_filters('comment_moderation_subject', $subject, $comment_id);
     1069        $message_headers = apply_filters('comment_moderation_headers', $message_headers, $comment_id);
    10661070
    1067         @wp_mail($admin_email, $subject, $notify_message);
     1071        @wp_mail($admin_email, $subject, $notify_message, $message_headers);
    10681072
    10691073        return true;
    10701074}