[wp-trac] Re: [WordPress Trac] #8863: wp_set_comment_status action is not raised

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 15 19:51:23 GMT 2009


#8863: wp_set_comment_status action is not raised
--------------------------+-------------------------------------------------
 Reporter:  Jehan         |        Owner:  Jehan   
     Type:  defect (bug)  |       Status:  assigned
 Priority:  normal        |    Milestone:  2.7.1   
Component:  Comments      |      Version:  2.7     
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by Jehan):

 Oh in fact, my last message is not really answering to the issue. This
 will fire "transition_comment_status", which is not fired as well when a
 comment is edited from wp-admin/comment.php (but is fired from wp-admin
 /edit-comment.php). But the original issue was for
 "wp_set_comment_status"!

 This is even more complicated because wp_set_comment_status itself calls
 transition_comment_status and it looks like there is the same bug in it
 (the comment is updated in the database before reloading it, then firing
 the action with $old_status being in fact the new one)... It would need to
 be changed as well. In fact, thinking out loud, I think I will do more
 tests, it is possible that even though it is fired in wp-admin/edit-
 comment.php, maybe it is with the wrong arguments... I'll get back to you
 soon.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8863#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list