Add 'get_the_terms' filter. Props filosofo. Fixes #15410

git-svn-id: http://svn.automattic.com/wordpress/trunk@16342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-13 14:08:27 +00:00
parent 7b010efc77
commit e56413ae33
1 changed files with 2 additions and 0 deletions

View File

@ -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;