[wp-trac] [WordPress Trac] #11166: wp_set_object_terms() Deletes All New Tags

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 17 18:34:17 UTC 2009


#11166: wp_set_object_terms() Deletes All New Tags
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:  filosofo   
     Type:  defect (bug)  |      Status:  new        
 Priority:  high          |   Milestone:  2.9        
Component:  Taxonomy      |     Version:  2.8.4      
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 While working on #10543, I noticed a logic flaw in function
 wp_set_object_terms().

 The call to $wpdb->insert() is logically incoherent with the default
 argument $append = false.  Any such occurrence results in the inserted
 tags being deleted, due to failure to modify the $old_tt_ids array.

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


More information about the wp-trac mailing list