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

WordPress Trac noreply at wordpress.org
Fri Jan 16 16:45:23 UTC 2015


#20635: _pad_term_count get's stuck if there is a loop in the hierarchy
-----------------------------------------------+---------------------
 Reporter:  westi                              |       Owner:  westi
     Type:  defect (bug)                       |      Status:  closed
 Priority:  normal                             |   Milestone:  4.2
Component:  Taxonomy                           |     Version:
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  westi-likes has-patch 2nd-opinion  |     Focuses:
-----------------------------------------------+---------------------
Changes (by boonebgorges):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31206"]:
 {{{
 #!CommitTicketReference repository="" revision="31206"
 Bail out of hierarchy loops in `_pad_term_counts()`.

 Taxonomy hierarchy loops should not occur naturally, but when they do, the
 logic of `_pad_term_counts()` could result in infinite loops, leading to
 timeouts. We avoid this by breaking when a loop is detected.

 Fixes #20635.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20635#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list