Ticket #20353: pluggable.php.wp_notify_moderator.diff
File pluggable.php.wp_notify_moderator.diff, 676 bytes (added by , 11 years ago) |
---|
-
pluggable.php
1100 1100 $email_to = array( get_option('admin_email') ); 1101 1101 if ( user_can($user->ID, 'edit_comment', $comment_id) && !empty($user->user_email) && ( get_option('admin_email') != $user->user_email) ) 1102 1102 $email_to[] = $user->user_email; 1103 1104 $email_to = apply_filters( 'comment_moderation_email_to', $email_to ); 1103 1105 1104 1106 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); 1105 1107 $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'");