Opened 14 years ago
Closed 14 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)
Change History (4)
Note: See
TracTickets for help on using
tickets.
(In [14539]) Use correct field name in a query in do_enclose(). fixes #12074, mtdewvirus.