Make WordPress Core

Ticket #20353: pluggable.php.wp_notify_moderator.diff

File pluggable.php.wp_notify_moderator.diff, 676 bytes (added by chipbennett, 13 years ago)

Applies 'comment_moderation_email_to' filters to $email_to array

  • pluggable.php

     
    11001100        $email_to = array( get_option('admin_email') );
    11011101        if ( user_can($user->ID, 'edit_comment', $comment_id) && !empty($user->user_email) && ( get_option('admin_email') != $user->user_email) )
    11021102                $email_to[] = $user->user_email;
     1103       
     1104        $email_to = apply_filters( 'comment_moderation_email_to', $email_to );
    11031105
    11041106        $comment_author_domain = @gethostbyaddr($comment->comment_author_IP);
    11051107        $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'");