[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 10:30:19 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
--------------------------+-------------------------------------------------
Changes (by caesarsgrunt):

 * cc: caesar@… (added)


Comment:

 I think all the wp_delete_* functions should call wp_trash_* if the item
 isn't already trashed - for back compat. Trash is the default now, and
 plugins which used ot delete should now trash. Unless there is a specific
 reason (in which case the force arg can be used), nothing should be
 deleted directly unless trash is disabled.

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


More information about the wp-trac mailing list