[wp-trac] [WordPress Trac] #17955: Allow a single taxonomy to be passed to get_terms() as an array.
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 1 06:31:16 UTC 2011
#17955: Allow a single taxonomy to be passed to get_terms() as an array.
------------------------------------+------------------------------
Reporter: mfields | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by mfields):
Going back to 2.3 when this function was introduced, it appears that
get_terms() was never able to accept a single taxonomy in an array with
the 'child_of' argument set. The logic which controls the value of the
$single_taxonomy boolean has remained the same ever since as well as most
things before the args are parsed. Would a bug like this be a good
candidate for early 3.3? If not considered a bug, I feel that the
documentation should definitely be updated to reflect this case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17955#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list