[wp-trac] Re: [WordPress Trac] #8862: The delete_comment action is raised twice.

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 12:53:42 GMT 2009


#8862: The delete_comment action is raised twice.
--------------------------+-------------------------------------------------
 Reporter:  Jehan         |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  2.8              
Component:  Comments      |     Version:  2.7              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 he's meaning that if you add an option that increments a counter when the
 delete_comment hook gets fired, it gets triggered twice.

 it *could* be that both the "normal" delete action (through http post) and
 the ajax delete action get fired, else I really can't see how this can
 possibly occur.

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


More information about the wp-trac mailing list