[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 12:26:01 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 scribu):

 I vote for no. 2:

 Replying to [comment:2 azaozz]:
 > 2. Separate the two functions and stop calling `delete()` from `trash()`
 and back `trash()` from `delete()`.
 >  * Pros: no API change for plugins.
 >  * Cons: posts that could have been trashed are deleted instead.

 Plugins that use wp_delete_*() will probably have AYS warnings. It's not
 ideal, but it's better than unpredicted behaviour.

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


More information about the wp-trac mailing list