[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 08:20:24 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 azaozz):

 The double-check sounds good but instead of selecting only posts/comments
 that are currently in the trash, perhaps better to select all that are
 scheduled (as at the moment) and then check if the status == 'trash'. Then
 you can remove the trash timestamp meta for items that are not trashed.

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


More information about the wp-trac mailing list