[wp-trac] [WordPress Trac] #24461: _get_term_children can loop forever (well until it times out) if there is a loop in the hierarchy

WordPress Trac noreply at wordpress.org
Thu May 30 10:22:21 UTC 2013


#24461: _get_term_children can loop forever (well until it times out) if there is a
loop in the hierarchy
--------------------------+-----------------------------
 Reporter:  westi         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 {{{_get_term_children}}} call's itself recursively to build the array of
 children. If there is for some reason a loop in the hierarchy it gets
 stuck and loops for ever trying to build the list of descendents.

 Seeing as we fetch the whole hierarchy with _get_term_hierarchy we can
 probably just use that to build an array of descendents without recursion.

 Otherwise we should leverage our loop detection code to find and maybe
 break loops.

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


More information about the wp-trac mailing list