[wp-trac] [WordPress Trac] #20635: _pad_term_count get's stuck if there is a loop in the hierarchy

WordPress Trac wp-trac at lists.automattic.com
Tue May 8 10:31:37 UTC 2012


#20635: _pad_term_count get's stuck if there is a loop in the hierarchy
--------------------------+-------------------------
 Reporter:  westi         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.4
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-------------------------
 Ideally it should be impossible for a loop in a taxonomy hierarchy to
 exist.

 But sometimes they do.

 If one does exist then {{{_pad_term_counts()}}} gets stuck :(

 When one of these does exist the category widget breaks the front page of
 your site.

 We currently hook {{{wp_check_term_hierarchy_for_loops}}} on
 {{{wp_update_term_parent}}} and I wonder if there are other places we
 should be doing this check too.

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


More information about the wp-trac mailing list