[wp-trac] [WordPress Trac] #26832: Unable to force delete using get_delete_post_link()
WordPress Trac
noreply at wordpress.org
Thu Oct 1 18:47:06 UTC 2015
#26832: Unable to force delete using get_delete_post_link()
-------------------------------+------------------------
Reporter: henry.wright | Owner: chriscct7
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 3.8
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+------------------------
Changes (by johnbillion):
* keywords: has-patch commit => needs-patch
Comment:
The issue isn't in the `get_delete_post_link()` function, so
[attachment:26832.patch] will have no effect. The issue is that a post
that's "deleted" with the link from `get_delete_post_link( $post_id, '',
true )` is actually trashed.
The issue is in the logic in
[https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
admin/post.php#L290 the 'delete' case in wp-admin/post.php] which only
deletes a post if `EMPTY_TRASH_DAYS` is empty.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26832#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list