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

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 16 21:54:58 UTC 2009


#8863: wp_set_comment_status action is not raised
-----------------------------------------+----------------------------------
 Reporter:  Jehan                        |        Owner:  Jehan   
     Type:  defect (bug)                 |       Status:  reopened
 Priority:  normal                       |    Milestone:  2.8     
Component:  Comments                     |      Version:  2.7     
 Severity:  normal                       |   Resolution:          
 Keywords:  has-patch reporter-feedback  |  
-----------------------------------------+----------------------------------

Comment(by Captaffy):

 I've attached a plugin you can use to test whether the hook has fired -
 transition_comment_status_test.php

 If you follow the steps I outlined previously, the attachment will not
 fire.
 If you use the ajax buttons, you will see the text in the plugin displayed
 on the page, indicating that it has fired. (Note that if you use it with
 the ajax buttons, you will have to reload the Edit Comments page manually
 for the comments to show their proper status, since the 'exit;' call in
 the plugin interferes with the ajax ui changes.)

 To see that the $old_status and $new_status values are the same in
 wp_transition_comment_status when doing bulk editing, add the following -
 echo $new_status . ' ' . $old_status . ' '; exit;
 to line 823 in /wp-includes/comment.php

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


More information about the wp-trac mailing list