Make WordPress Core

Changeset 3455


Ignore:
Timestamp:
01/18/2006 06:49:28 PM (21 years ago)
Author:
ryan
Message:

Pass comment ID to comment email filters. Props Mark Jaquith. fixes #2307

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable-functions.php

    r3430 r3455  
    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);
    … …  
    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);
Note: See TracChangeset for help on using the changeset viewer.