Ticket #2307: wp_email_filters.diff
| File wp_email_filters.diff, 1.4 KB (added by , 20 years ago) |
|---|
-
wp-includes/pluggable-functions.php
326 326 if ( isset($reply_to) ) 327 327 $message_headers .= $reply_to . "\n"; 328 328 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); 332 332 333 333 @wp_mail($user->user_email, $subject, $notify_message, $message_headers); 334 334 … … 369 369 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_settings('blogname'), $post->post_title ); 370 370 $admin_email = get_settings('admin_email'); 371 371 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); 374 374 375 375 @wp_mail($admin_email, $subject, $notify_message); 376 376