[wpmu-trac] [WordPress MU Trac] #568: The parent_id in wp_term_taxnomy is a taxonomy id not a term id

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Mar 10 14:46:13 GMT 2008


#568: The parent_id in wp_term_taxnomy is a taxonomy id not a term id
------------------------+---------------------------------------------------
 Reporter:  chmac       |       Owner:  somebody                                              
     Type:  defect      |      Status:  new                                                   
 Priority:  high        |   Milestone:                                                        
Component:  component1  |     Version:                                                        
 Severity:  major       |    Keywords:  wpmu-functions, parent_id, global_id, term_taxonomy_id
------------------------+---------------------------------------------------
 [source:trunk/wp-includes/wpmu-functions.php wpmu-functions.php] updates
 the term_id based on a global table. However, it also *incorrectly*
 updates the parent column in the wp_term_taxonomy table with the new
 global ID. The parent column contains the term_taxonomy_id and not the
 term_id, so it should not be updated.

 This is quite a serious bug as it could adversely affect local categories
 by changing their parents without intending to.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/568>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list