[wp-trac] [WordPress Trac] #26832: Unable to force delete using get_delete_post_link()

WordPress Trac noreply at wordpress.org
Sat Oct 3 01:49:32 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-testing has-patch  |     Focuses:
-------------------------------------+------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch needs-testing => needs-testing has-patch


Comment:

 Replying to [comment:9 johnbillion]:
 > [attachment:26832.2.patch] should address this, but needs full testing
 and we also need to check if anywhere in the admin is using a `delete`
 link when it should be using a `trash` link.

 We use a `delete` link in [source:trunk/src/wp-admin/includes/class-wp-
 posts-list-table.php?rev=34728&marks=1206#L1200
 WP_Posts_List_Table::handle_row_actions()] and [source:tags/4.3.1/src/wp-
 admin/includes/meta-boxes.php?marks=330#L325
 attachment_submit_meta_box()]. Both look proper and are only displayed if
 `EMPTY_TRASH_DAYS` is disabled or the post is already in Trash.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26832#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list