Make WordPress Core

Ticket #2307: wp_email_filters.diff

File wp_email_filters.diff, 1.4 KB (added by markjaquith, 20 years ago)
  • wp-includes/pluggable-functions.php

     
    326326        if ( isset($reply_to) )
    327327                $message_headers .= $reply_to . "\n";
    328328
    329         $notify_message = apply_filters('comment_notification_text', $notify_message);
    330         $subject = apply_filters('comment_notification_subject', $subject);
    331         $message_headers = apply_filters('comment_notification_headers', $message_headers);
     329        $notify_message = apply_filters('comment_notification_text', $notify_message, $comment_id);
     330        $subject = apply_filters('comment_notification_subject', $subject, $comment_id);
     331        $message_headers = apply_filters('comment_notification_headers', $message_headers, $comment_id);
    332332
    333333        @wp_mail($user->user_email, $subject, $notify_message, $message_headers);
    334334   
     
    369369        $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_settings('blogname'), $post->post_title );
    370370        $admin_email = get_settings('admin_email');
    371371
    372         $notify_message = apply_filters('comment_moderation_text', $notify_message);
    373         $subject = apply_filters('comment_moderation_subject', $subject);
     372        $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id);
     373        $subject = apply_filters('comment_moderation_subject', $subject, $comment_id);
    374374
    375375        @wp_mail($admin_email, $subject, $notify_message);
    376376