[wp-trac] [WordPress Trac] #31118: get_terms() parameters do not respect multiple $taxonomies

WordPress Trac noreply at wordpress.org
Mon Jan 26 19:03:11 UTC 2015


#31118: get_terms() parameters do not respect multiple $taxonomies
------------------------------------------+-----------------------------
 Reporter:  boonebgorges                  |       Owner:  boonebgorges
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  Future Release
Component:  Taxonomy                      |     Version:
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"31285"]:
 {{{
 #!CommitTicketReference repository="" revision="31285"
 Ensure that 'hierarchical' is respected in `get_terms()` when multiple
 taxonomies are passed.

 Previously, attempts to descend the family tree of each term were done
 using
 the first taxonomy in the `$taxonomies` array, with the result that terms
 not
 belonging to that taxonomy were not found and their children not properly
 parsed. We fix this bug by fetching each term's taxonomy with the SQL
 query,
 and then using that taxonomy to get the correct children for each term.

 Fixes #31118.
 }}}

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


More information about the wp-trac mailing list