WordPress.org

Make WordPress Core

Ticket #8695: wp-includes--pluggable.php.diff

File wp-includes--pluggable.php.diff, 742 bytes (added by josephscott, 6 years ago)
  • wp-includes/pluggable.php

     
    952952        $post    = get_post($comment->comment_post_ID); 
    953953        $user    = get_userdata( $post->post_author ); 
    954954        $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 
    955957         
    956         if ( $current_user->ID == $user->ID ) return false; // The author moderated a comment on his own post 
    957  
    958958        if ('' == $user->user_email) return false; // If there's no email to send the comment to 
    959959 
    960960        $comment_author_domain = @gethostbyaddr($comment->comment_author_IP);