Add a filter to the result of wp_get_object_terms(). Fixes #8704 props Denis-de-Bernardy.

git-svn-id: https://develop.svn.wordpress.org/trunk@11253 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-05-10 09:11:58 +00:00
parent 2e5a6f847b
commit a08a8c6db9
1 changed files with 2 additions and 2 deletions

View File

@ -1273,9 +1273,9 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
}
if ( ! $terms )
return array();
return $terms = array();
return $terms;
return apply_filters('wp_get_object_terms', $terms, $object_ids, $taxonomies, $args);
}
/**