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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 16 00:37:33 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:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by azaozz):

  * keywords:  has-patch => needs-patch
  * severity:  blocker => normal


Comment:

 This is a double-check if the comments/posts have been properly
 "untrashed" and to prevent deleting them when not. All it needs to do is
 look at the "status" field and delete the meta timeout if it's not
 'trash'.

 Don't think we should be removing functions and filters that have been in
 core for few months, also the posts and the comments trashing API should
 be similar and easy to read/understand.

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


More information about the wp-trac mailing list