Make WordPress Core

Changeset 2827


Ignore:
Timestamp:
08/30/2005 11:17:42 PM (19 years ago)
Author:
matt
Message:

Fixes #1578 for 1.6

File:
1 edited

Legend:

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

    r2806 r2827  
    222222    $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1");
    223223    $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1");
    224     $user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID='$post->post_author' LIMIT 1");
    225224
    226225    if ('' == $user->user_email) return false; // If there's no email to send the comment to
     
    269268        . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
    270269
     270    $notify_message = apply_filters('comment_notification_text', $notify_message);
     271    $subject = apply_filters('comment_notification_subject', $subject);
     272    $message_headers = apply_filters('comment_notification_headers', $message_headers);
     273
    271274    @wp_mail($user->user_email, $subject, $notify_message, $message_headers);
    272275   
     
    306309
    307310    $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_settings('blogname'), $post->post_title );
    308     $admin_email = get_settings("admin_email");
     311    $admin_email = get_settings('admin_email');
     312
     313    $notify_message = apply_filters('comment_moderation_text', $notify_message);
     314    $subject = apply_filters('comment_moderation_subject', $subject);
    309315
    310316    @wp_mail($admin_email, $subject, $notify_message);
Note: See TracChangeset for help on using the changeset viewer.