[wp-trac] [WordPress Trac] #12074: Delete enclosures by meta_id

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 29 02:25:14 UTC 2010


#12074: Delete enclosures by meta_id
--------------------------+-------------------------------------------------
 Reporter:  mtdewvirus    |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.0
Component:  Media         |     Version:  3.0
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12074>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list