Ticket #19395: 19395.diff

File 19395.diff, 553 bytes (added by nickmomrik, 18 months ago)
  • wp-includes/pluggable.php

     
    980980        $post    = get_post( $comment->comment_post_ID ); 
    981981        $author  = get_userdata( $post->post_author ); 
    982982 
     983        // The post author is no longer a member of the blog 
     984        if ( ! is_user_member_of_blog( $post->post_author ) ) 
     985                return false; 
     986 
    983987        // The comment was left by the author 
    984988        if ( $comment->user_id == $post->post_author ) 
    985989                return false;