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

git-svn-id: https://develop.svn.wordpress.org/trunk@16342 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-11-13 14:08:27 +00:00
parent 958d135e11
commit a2dfe18dfd
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;