[wp-trac] [WordPress Trac] #30275: Exclude breaks wp_list_categories for non-hierarchical categories

WordPress Trac noreply at wordpress.org
Thu Nov 6 21:46:19 UTC 2014


#30275: Exclude breaks wp_list_categories for non-hierarchical categories
--------------------------+---------------------------
 Reporter:  thomask       |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Taxonomy      |     Version:  4.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30265"]:
 {{{
 #!CommitTicketReference repository="" revision="30265"
 Don't force child_of=0 for non-hierarchical taxonomies in `get_terms()`.

 This forcing appears to have been introduced to save unnecessary queries,
 but
 (a) in some cases it appeared to be causing *more* queries, and (b) it
 caused
 incorrect results when the 'exclude_tree' param of `get_terms()` called
 `get_terms()` on each item in the tree using the 'child_of' param.

 Fixes #30275.
 }}}

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


More information about the wp-trac mailing list