[wp-trac] [WordPress Trac] #53319: Add support for a "reverse" argument in get_term_parents_list() function
WordPress Trac
noreply at wordpress.org
Mon Jun 7 17:23:48 UTC 2021
#53319: Add support for a "reverse" argument in get_term_parents_list() function
-------------------------------------------------+-------------------------
Reporter: bedas | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.9
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by jnylen0):
Also, I think calling this argument `parents_first` (default `true`) or
`children_first` (default `false`) would be more descriptive. `reverse`
isn't immediately clear about what it is reversing until you look in the
code and see that it's related to the use of the `array_reverse` function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53319#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list