WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#12085 closed defect (bug) (fixed)

Media fails to delete from Add Media Thickbox or Delete Permanently link

Reported by: ev3rywh3re Owned by:
Milestone: 3.0 Priority: normal
Severity: major Version: 3.0
Component: Media Keywords: has-patch tested
Focuses: Cc:

Description

Media will not delete using the delete link in the Media pop-up or using the delete permanently link under the edit media area. I can delete using the bulk options in the media area. WordPress responds with the blank fullpage - You sure you want to do this? Try again error.

Both test sites are WPMU 2.9.1.1 sites moved to WordPress Core SVN trunk. One is a Dreamhost PS site and the other is a personally maintained Fedora 12 SELinux server.

I didn't see another trac ticket nor did I dig into some of the possibly related merge tickets.

Attachments (1)

12085.diff (5.8 KB) - added by nacin 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 @nacin6 years ago

Some changes to the custom post type code broke the nonce check. Looks like there's a dozen or so we'll need to fix.

@nacin6 years ago

comment:2 follow-up: @nacin6 years ago

  • Keywords has-patch added; media removed

Should fix all instances.

comment:3 in reply to: ↑ 2 @ev3rywh3re6 years ago

  • Cc ev3rywh3re added

Patch tested good on [12905]

comment:4 @nacin6 years ago

  • Keywords tested added

comment:5 @ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12972]) Fix delete media nonces. Props nacin. fixes #12085

Note: See TracTickets for help on using tickets.