[wp-trac] [WordPress Trac] #46768: Not working get_terms with parameters 'child_of' and 'fields'=>'id=>name'
WordPress Trac
noreply at wordpress.org
Mon Mar 9 22:06:45 UTC 2020
#46768: Not working get_terms with parameters 'child_of' and 'fields'=>'id=>name'
----------------------------------------+-----------------------------
Reporter: planvova | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 3.7
Severity: major | Resolution:
Keywords: needs-unit-tests has-patch | Focuses:
----------------------------------------+-----------------------------
Changes (by Howdy_McGee):
* keywords: needs-patch needs-unit-tests => needs-unit-tests has-patch
Comment:
The `names` fields param already accounts for grabbing the tt.parent. I
don't see why we can't do the same for both `id=>name` and `id=>slug`.
I've added a patch that simply adds these in which should address the
issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46768#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list