[wpmu-trac] Re: [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 18:16:24 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:  closed  
 Priority:  high                                                    |    Milestone:          
Component:  component1                                              |      Version:          
 Severity:  major                                                   |   Resolution:  invalid 
 Keywords:  wpmu-functions, parent_id, global_id, term_taxonomy_id  |  
--------------------------------------------------------------------+-------
Changes (by donncha):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Actually, I think parent is a term_id, at least looking at code fragments
 elsewhere.

 Look at wp-admin/import/wp-cat2tag.php
 The sql here presumes it's a term_id:

 $terms = $wpdb->get_col("SELECT term_id FROM $wpdb->term_taxonomy WHERE
 parent = '{$category->term_id}' AND taxonomy = 'category'");

 Phew.

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


More information about the wpmu-trac mailing list