WordPress.org

Make WordPress Core

Ticket #23136: 23136.diff

File 23136.diff, 553 bytes (added by ryan, 15 months ago)

Props nickmomrik

  • wp-includes/pluggable.php

     
    991991        $post    = get_post( $comment->comment_post_ID ); 
    992992        $author  = get_userdata( $post->post_author ); 
    993993 
     994        // The post author is no longer a member of the blog 
     995        if ( ! is_user_member_of_blog( $post->post_author ) ) 
     996                return false; 
     997 
    994998        // The comment was left by the author 
    995999        if ( $comment->user_id == $post->post_author ) 
    9961000                return false;