[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:31:44 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):

 We could make all the changes in patch 5, but keep the
 wp_(action)_comment() functions just as wrappers - eg
 {{{
 function wp_trash_comment($id) {
     return wp_set_comment_status($id, 'trash');
 }
 }}}
 but I don't think it's really necessary. After all, why should trash and
 spam have separate functions when no other status does?

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


More information about the wp-trac mailing list