[wp-trac] [WordPress Trac] #12774: Don't fire wp_notify_postauthor() when the author moderated the comment

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 30 15:10:27 UTC 2010


#12774: Don't fire wp_notify_postauthor() when the author moderated the comment
-------------------------+--------------------------------------------------
 Reporter:  nacin        |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.1
Component:  Comments     |     Version:     
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
 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?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12774>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list