Make WordPress Core

Changeset 23294


Ignore:
Timestamp:
01/08/2013 04:03:16 AM (12 years ago)
Author:
markjaquith
Message:

Do not notify the post author about comments if they are no longer a member of the blog. props nickmomrick. fixes #23136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r23228 r23294  
    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 )
Note: See TracChangeset for help on using the changeset viewer.