[wp-trac] [WordPress Trac] #11470: Don't have wp_delete_post and wp_delete_attachment trash the item by default

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 17 07:54:25 UTC 2009


#11470: Don't have wp_delete_post and wp_delete_attachment trash the item by
default
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:              
     Type:  defect (bug)  |      Status:  new         
 Priority:  normal        |   Milestone:  2.9         
Component:  Trash         |     Version:  2.9         
 Severity:  normal        |    Keywords:  dev-feedback
--------------------------+-------------------------------------------------

Comment(by westi):

 The current implementation means that plugins don't have to know anything
 about trash and any delete options they offer are automatically converted
 to trash options I much prefer this behaviour over requiring every plugin
 author that offers a delete link having to put trash specific code in.

 I also don't think we should change this logic this close to release.

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


More information about the wp-trac mailing list