[wp-trac] [WordPress Trac] #5792: delete_post doesn't appear to be used when deleting via AJAX

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 7 13:03:43 GMT 2008


#5792: delete_post doesn't appear to be used when deleting via AJAX
----------------------------+-----------------------------------------------
 Reporter:  Viper007Bond    |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.5      
Component:  Administration  |     Version:  2.5      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 I have a plugin that uses `delete_post` to do some stuff when a post is
 deleted. If I disable JS and click on a delete post link in Manage ->
 Posts, my function runs fine. However, if I delete the post via AJAX, my
 function doesn't seem to run.

 Anyone able to reproduce? The AJAX calls `wp_delete_post()` which is where
 the hook is located, so I'm not quite sure why it's not working.

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


More information about the wp-trac mailing list