﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
17955	Allow a single taxonomy to be passed to get_terms() as an array.	mfields	nacin	"The inline docs for get_terms() state that the $taxonomies parameter may contain either a string or an array.

{{{
@param string|array $taxonomies Taxonomy name or list of Taxonomy names
}}}

I've just ran into a situation where this is not the case. The following code works fine and should list all children of the term with and id of 174:


{{{
$terms = get_terms( 'category', array( 'child_of' => 174 ) );
print '<pre>' . print_r( $terms, true ) . '</pre>';
}}}

However, if the taxonomies parameter is given in an array, all categories will be returned:


{{{
$terms = get_terms( array( 'category' ), array( 'child_of' => 174 ) );
print '<pre>' . print_r( $terms, true ) . '</pre>';
}}}

I believe that both examples should produce the same results.

This behavior can be observed in WordPress 3.1.4 as well as 3.2.
"	defect (bug)	closed	normal	3.5	Taxonomy	3.1	normal	fixed	has-patch	michael@…
