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;