Ticket #8695: wp-includes--pluggable.php.diff
| File wp-includes--pluggable.php.diff, 742 bytes (added by josephscott, 4 years ago) |
|---|
-
wp-includes/pluggable.php
952 952 $post = get_post($comment->comment_post_ID); 953 953 $user = get_userdata( $post->post_author ); 954 954 $current_user = wp_get_current_user(); 955 956 if ( $comment->user_id == $post->post_author ) return false; // The author moderated a comment on his own post 955 957 956 if ( $current_user->ID == $user->ID ) return false; // The author moderated a comment on his own post957 958 958 if ('' == $user->user_email) return false; // If there's no email to send the comment to 959 959 960 960 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP);
