From 077697d1ca7d670dbf6c99b274dd1cb209f17621 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@11253 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 b70c5cb54..8365d68e0 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); } /**