Skip to content

Commit

Permalink
Merge pull request #964 from Automattic/fix/post-author-notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Jul 29, 2023
2 parents c46ece8 + bdd4967 commit 0de2a6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1930,17 +1930,17 @@ function wp_notify_postauthor( $comment_id, $comment_type = '' ) {

// The comment was left by the co-author
if ( $comment->user_id == $author->ID ) {
return false;
continue;
}

// The co-author moderated a comment on his own post
if ( $author->ID == get_current_user_id() ) {
return false;
continue;
}

// If there's no email to send the comment to
if ( '' == $author->user_email ) {
return false;
continue;
}

$comment_author_domain = @gethostbyaddr( $comment->comment_author_IP );
Expand Down

0 comments on commit 0de2a6b

Please sign in to comment.