From a08a8c6db9885090de62dae04f897618294607e1 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 10 May 2009 09:11:58 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index b70c5cb541..8365d68e07 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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); } /**