[wp-trac] [WordPress Trac] #10647: Add $force parameter to wp_delete_*() functions
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 19 06:37:17 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
-------------------------+--------------------------------------------------
Comment(by TobiasBg):
I believe line 1148
{{{
return wp_delete_attachment($postid);
}}}
should become
{{{
return wp_delete_attachment($postid, $force);
}}}
so that using wp_delete_post on an attachment maintains its behavior.
Without this change a call of wp_delete_post (with force) on an attachment
would move it to trash instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10647#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list