Return ref. Props nbachiyski. fixes #9109
git-svn-id: http://svn.automattic.com/wordpress/trunk@11216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf92d8a323
commit
e15c230205
|
@ -612,8 +612,10 @@ function &get_terms($taxonomies, $args = '') {
|
|||
}
|
||||
|
||||
foreach ( (array) $taxonomies as $taxonomy ) {
|
||||
if ( ! is_taxonomy($taxonomy) )
|
||||
return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
|
||||
if ( ! is_taxonomy($taxonomy) ) {
|
||||
$error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
|
||||
return $error;
|
||||
}
|
||||
}
|
||||
|
||||
$in_taxonomies = "'" . implode("', '", $taxonomies) . "'";
|
||||
|
|
Loading…
Reference in New Issue