[wp-trac] [WordPress Trac] #4839: wp_update_comment doesn't call wp_set_comment_status action hook

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 15:11:46 GMT 2007


#4839: wp_update_comment doesn't call wp_set_comment_status action hook
----------------------+-----------------------------------------------------
 Reporter:  filosofo  |       Owner:  anonymous                                        
     Type:  defect    |      Status:  new                                              
 Priority:  normal    |   Milestone:  2.3                                              
Component:  General   |     Version:  2.3                                              
 Severity:  normal    |    Keywords:  wp_set_comment_status wp_update_comment has-patch
----------------------+-----------------------------------------------------
 wp_update_comment should call the wp_set_comment_status action hook when
 it changes the status, but it doesn't.

 That means that if you change a comment's status using, for example, the
 template "edit" link created by edit_comment_link(), you won't call the
 wp_set_comment_status action hook.

 The attached patch calls wp_set_comment_status only if there has been a
 change to the comment's status.

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


More information about the wp-trac mailing list