diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 1995c3b321..461eda0c6e 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -3042,7 +3042,7 @@ function get_object_term_cache( $id, $taxonomy ) { $terms = array(); foreach ( $term_ids as $term_id ) { - $term = get_term( $term_id ); + $term = get_term( $term_id, $taxonomy ); if ( is_wp_error( $term ) ) { return $term; }