get_object_term_cache duplicate terms after update to wordpress 6
After WordPress update to 6 versions receives an issue. receive duplicated terms on function
echo wp_kses_post(get_the_term_list($product-get_id(), 'product_cat', '', ', ', ''));
and
echo wp_kses_post( get_the_term_list( $product-get_id(), 'pa_material', 'li class=material', ', ', '/li' )) ? : '';
All work correctly before the update.
I found that get_object_term_cache( $post-ID, $taxonomy );
give me duplicated terms
What can cause this issue? Plugin or function change? (unable to find detail WP 6 changelog)
Topic bug terms categories Wordpress
Category Web