[wp-trac] [WordPress Trac] #11534: WordPress moves post/page to trash instead of deleting it
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 20 19:11:58 UTC 2009
#11534: WordPress moves post/page to trash instead of deleting it
--------------------------+-------------------------------------------------
Reporter: sirzooro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9.1
Component: Trash | Version: 2.9
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by nacin):
Here's my take on this. Your plugin is a perfectly reasonable example of
how plugins can extend the trash feature.
I'm all for wp_delete_post, wp_delete_attachment, and wp_delete_comment
relying on a $force_delete parameter to skip trash (if trash is enabled
for that component).
That said, action=delete links should be processed always as a force
delete, not as a conditional for whether trash is enabled (note how $force
= !EMPTY_TRASH_DAYS). There's a reason we have action=trash as well.
Regardless, as you can see in that other ticke,t this is a much larger
issue that will require some major decisions from the core devs on the
directions of the trash-related API.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11534#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list