Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#12074 closed defect (bug) (fixed)

Delete enclosures by meta_id

Reported by: mtdewvirus Owned by: nacin
Milestone: 3.0 Priority: high
Severity: normal Version: 3.0
Component: Media Keywords: has-patch
Focuses: Cc:


In do_enclose(), the meta_id is selected from the postmeta table but then the delete query's WHERE uses post_id as the field to delete by, potentially deleting all of the postmeta for other posts. The delete query should use meta_id for the WHERE.

Patch created on r12893.

Attachments (1)

12074.diff (761 bytes) - added by mtdewvirus 12 years ago.

Download all attachments as: .zip

Change History (4)

12 years ago

#1 @mtdewvirus
12 years ago

  • Keywords has-patch added

#2 @nacin
12 years ago

  • Owner set to nacin
  • Status changed from new to accepted

#3 @nacin
12 years ago

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

(In [14539]) Use correct field name in a query in do_enclose(). fixes #12074, mtdewvirus.

Note: See TracTickets for help on using tickets.