From 395b6dbc1a07d9398e46990f196775581ca40ed0 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 18 Jan 2006 18:49:28 +0000 Subject: [PATCH] Pass comment ID to comment email filters. Props Mark Jaquith. fixes #2307 git-svn-id: http://svn.automattic.com/wordpress/trunk@3455 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable-functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/pluggable-functions.php b/wp-includes/pluggable-functions.php index dfe3f51ffa..d4f3e8207f 100644 --- a/wp-includes/pluggable-functions.php +++ b/wp-includes/pluggable-functions.php @@ -326,9 +326,9 @@ function wp_notify_postauthor($comment_id, $comment_type='') { if ( isset($reply_to) ) $message_headers .= $reply_to . "\n"; - $notify_message = apply_filters('comment_notification_text', $notify_message); - $subject = apply_filters('comment_notification_subject', $subject); - $message_headers = apply_filters('comment_notification_headers', $message_headers); + $notify_message = apply_filters('comment_notification_text', $notify_message, $comment_id); + $subject = apply_filters('comment_notification_subject', $subject, $comment_id); + $message_headers = apply_filters('comment_notification_headers', $message_headers, $comment_id); @wp_mail($user->user_email, $subject, $notify_message, $message_headers); @@ -369,8 +369,8 @@ function wp_notify_moderator($comment_id) { $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_settings('blogname'), $post->post_title ); $admin_email = get_settings('admin_email'); - $notify_message = apply_filters('comment_moderation_text', $notify_message); - $subject = apply_filters('comment_moderation_subject', $subject); + $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id); + $subject = apply_filters('comment_moderation_subject', $subject, $comment_id); @wp_mail($admin_email, $subject, $notify_message);