[wp-trac] [WordPress Trac] #14399: get_term_children on non-post custom taxonomies

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 20 13:07:01 UTC 2010


#14399: get_term_children on non-post custom taxonomies
----------------------------------------+-----------------------------------
 Reporter:  miradev                     |        Owner:                 
     Type:  defect (bug)                |       Status:  closed         
 Priority:  normal                      |    Milestone:  Awaiting Review
Component:  Taxonomy                    |      Version:  3.0            
 Severity:  normal                      |   Resolution:  invalid        
 Keywords:  custom taxonomy child term  |  
----------------------------------------+-----------------------------------
Changes (by miradev):

  * status:  new => closed
  * resolution:  => invalid
  * component:  General => Taxonomy


Comment:

 It is not a bug, it is just that there is a lack of documentation.

 get_child_terms() doesn't query the database, it uses the (in this case)
 'where-you-live_children' blog option, which is empty until built.

 This is built by invoking: clean_term_cache()

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14399#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list