[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 23:53:22 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 nacin):

 Patch for wp_delete_comment() to function the same way as wp_delete_post()
 and wp_delete_attachment().  Also adds some phpdoc to clarify how exactly
 the wp_delete_* functions work.

 As azaozz said, these functions will likely be redone in 3.0 into a single
 function (with wrappers) so they can handle custom post types. Them
 behaving consistently is an expectation, and would also generate less
 headaches when we abstract them.

 Unless there is a specific reason for wp_delete_comment to not work the
 same way as wp_delete_post, then this should be a commit. There's nothing
 drastic here.

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


More information about the wp-trac mailing list