Introduce get_terms_args filter. Fixes #15020
git-svn-id: http://svn.automattic.com/wordpress/trunk@16059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00925c6424
commit
568620021d
|
@ -911,7 +911,7 @@ function &get_terms($taxonomies, $args = '') {
|
|||
$taxonomies = array($taxonomies);
|
||||
}
|
||||
|
||||
foreach ( (array) $taxonomies as $taxonomy ) {
|
||||
foreach ( $taxonomies as $taxonomy ) {
|
||||
if ( ! taxonomy_exists($taxonomy) ) {
|
||||
$error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
|
||||
return $error;
|
||||
|
@ -940,6 +940,8 @@ function &get_terms($taxonomies, $args = '') {
|
|||
$args['pad_counts'] = false;
|
||||
}
|
||||
|
||||
$args = apply_filters( 'get_terms_args', $args, $taxonomies );
|
||||
|
||||
extract($args, EXTR_SKIP);
|
||||
|
||||
if ( $child_of ) {
|
||||
|
|
Loading…
Reference in New Issue