Delete enclosures by meta_id
|Reported by:||mtdewvirus||Owned by:||nacin|
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.