[wp-trac] [WordPress Trac] #10647: Add $force parameter to wp_delete_*() functions
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 19 00:02:57 UTC 2009
#10647: Add $force parameter to wp_delete_*() functions
-------------------------+--------------------------------------------------
Reporter: scribu | Owner: scribu
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version: 2.9
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
With the new trash functionality, there is no way to delete a post or
attachment directly. You have to call the function two times.
Both wp_delete_post() and wp_delete_attachment should have an optional
$force parameter that bypasses the trash.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10647>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list