From e56413ae33fec00faa5ccaf104c95511763bf22e Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 13 Nov 2010 14:08:27 +0000 Subject: [PATCH] Add 'get_the_terms' filter. Props filosofo. Fixes #15410 git-svn-id: http://svn.automattic.com/wordpress/trunk@16342 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index aaf2e767d4..f6784986b3 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1064,6 +1064,8 @@ function get_the_terms( $id = 0, $taxonomy ) { if ( false === $terms ) $terms = wp_get_object_terms( $id, $taxonomy ); + $terms = apply_filters( 'get_the_terms', $terms, $id, $taxonomy ); + if ( empty( $terms ) ) return false;