[wp-trac] [WordPress Trac] #11442: Untrashed comments could be deleted by wp_scheduled_delete()

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 15 20:49:13 UTC 2009


#11442: Untrashed comments could be deleted by wp_scheduled_delete()
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  2.9      
Component:  Trash         |     Version:  2.9      
 Severity:  blocker       |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by caesarsgrunt):

 Replying to [comment:20 nacin]:
 > But they're still simple, easy to use, and named well.
 So is wp_set_comment_status($id, 'trash'). But I don't care much either
 way either...

 > Ex.: The trash_comment hook ran before a comment was trashed, and a
 trashed_comment hook ran once trashed (if successful).
 Oh. Well, this doesn't happen for any other statuses, but it would be easy
 enough to make it so that this happened for ''all'' statuses.

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


More information about the wp-trac mailing list