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:
parent
7b010efc77
commit
e56413ae33
|
@ -1064,6 +1064,8 @@ function get_the_terms( $id = 0, $taxonomy ) {
|
||||||
if ( false === $terms )
|
if ( false === $terms )
|
||||||
$terms = wp_get_object_terms( $id, $taxonomy );
|
$terms = wp_get_object_terms( $id, $taxonomy );
|
||||||
|
|
||||||
|
$terms = apply_filters( 'get_the_terms', $terms, $id, $taxonomy );
|
||||||
|
|
||||||
if ( empty( $terms ) )
|
if ( empty( $terms ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue