Don't fire wp_notify_postauthor() when the author moderated the comment
|Reported by:||nacin||Owned by:|
In wp_notify_postauthor(), there is this bit of code with an inline comment:
// The author moderated a comment on his own post if ( $comment->user_id == $post->post_author ) return false;
The comment doesn't match the code. The code actually prevents the e-mail whenever the author *made* a comment on their own post.
That said, the comment should have code for it. If the author moderates a comment on their own post (a comment not written by them, that is), the author should not get a comment notification. Thoughts?
Change History (15)
- Keywords commit added; needs-testing removed
- Milestone changed from Awaiting Triage to 3.1