WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

Description

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 4 years ago.

Download all attachments as: .zip

Change History (4)

mtdewvirus4 years ago

comment:1 mtdewvirus4 years ago

  • Keywords has-patch added

comment:2 nacin4 years ago

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

comment:3 nacin4 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.