mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Introduce get_terms_args filter. Fixes #15020
git-svn-id: https://develop.svn.wordpress.org/trunk@16059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user