[wp-trac] [WordPress Trac] #17069: missing get_term_parents() function

WordPress Trac noreply at wordpress.org
Tue Nov 29 12:32:22 UTC 2016


#17069: missing get_term_parents() function
-------------------------------------------------+-------------------------
 Reporter:  thomask                              |       Owner:
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Taxonomy                             |  Release
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch needs-refresh good-first-  |  Resolution:
  bug has-unit-tests                             |     Focuses:
-------------------------------------------------+-------------------------
Changes (by keesiemeijer):

 * keywords:  has-patch needs-refresh needs-unit-tests good-first-bug =>
     has-patch needs-refresh good-first-bug has-unit-tests


Comment:

 In patch [attachment:17069.1.patch] I've renamed the function to
 `get_term_parents_list` to make it more clear what it returns. The
 `$visited` parameter is deprecated in `get_category_parents()` as it was
 only used to avoid duplicates from the recursive calls to itself.

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


More information about the wp-trac mailing list