[wp-trac] [WordPress Trac] #7267: Infinite recursion in get_category_parents() and _children()

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 9 04:54:22 GMT 2008

#7267: Infinite recursion in get_category_parents() and _children()
 Reporter:  tellyworth  |       Owner:  anonymous             
     Type:  defect      |      Status:  new                   
 Priority:  normal      |   Milestone:  2.6                   
Component:  General     |     Version:                        
 Severity:  normal      |    Keywords:  has-patch irish-coffee
 These two functions can get stuck in a recursion loop if there's an
 indirect category hierarchy loop like A -> B -> C -> A.

 The patch keeps track of traversed IDs and prevents repetition - there's a
 name for the algorithm but it escapes me.  It increases memory usage but
 probably not too much - certainly less than infinite recursion does.

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

More information about the wp-trac mailing list