Opened 16 years ago
Closed 16 years ago
#11455 closed defect (bug) (fixed)
Bulk "Delete Permanently" moves attachments to trash
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 2.9 |
| Component: | Media | Keywords: | has-patch |
| Focuses: | Cc: |
Description
On the Media editing screen, choosing "Delete Permanently" moves selected attachments to the trash, instead of deleting them.
Attachments (3)
Change History (20)
#2
@
16 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
I can reproduce. Looking into it.
#3
in reply to:
↑ 1
@
16 years ago
- Keywords has-patch added
We need to add checks for EMPTY_TRASH_DAYS and MEDIA_TRASH.
#7
@
16 years ago
We might also want to check MEDIA_TRASH in wp_trash_post() if the type is attachment. This seems good enough for now though.
#8
follow-up:
↓ 9
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Patch to add MEDIA_TRASH check to wp_trash_post.
Random thought -- we should add wp_trash_attachment() to 3.0.
#9
in reply to:
↑ 8
@
16 years ago
- Milestone changed from 2.9 to 3.0
Replying to nacin:
Random thought -- we should add wp_trash_attachment() to 3.0.
Yes, don't really like how wp_trash_post() calls wp_delete_attachment() and wp_delete_attachment() calls back wp_trash_post() in the above patch...
#11
follow-up:
↓ 14
@
16 years ago
nacin, I'll close the ticket for now because I hope that will catch your attention. Shouldn't we move the "unfixed"/new part into it's own ticket? (see my last comment)
#13
@
16 years ago
I'll close the ticket for now because I hope that will catch your attention
Please dont close tickets in order to get someones attention..
#14
in reply to:
↑ 11
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to hakre:
nacin, I'll close the ticket for now because I hope that will catch your attention. Shouldn't we move the "unfixed"/new part into it's own ticket? (see my last comment)
There isn't harm in keeping them as one ticket. There was one part we needed to commit late in 2.9. The rest is directly linked to this but didn't need to go into 2.9, so a core dev moved the milestone to 3.0.
I would consider spinning off the last patch here to a new ticket that also includes wp_trash_attachment(), but wp_trash_attachment() will be addressed after the resolutions of #11470 and #11394, and trash for media.
I wasn't able to replicated this. Trash for Media was removed from 2.9 and the "Delete Permanently" action deletes the attachments on my local trunk install.