diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 9f360e3391..23bfc6d68a 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -7344,7 +7344,7 @@ function wp_queue_posts_for_term_meta_lazyload( $posts ) { $terms = get_object_term_cache( $post->ID, $taxonomy ); if ( false !== $terms ) { foreach ( $terms as $term ) { - if ( ! isset( $term_ids[ $term->term_id ] ) ) { + if ( ! in_array( $term->term_id, $term_ids, true ) ) { $term_ids[] = $term->term_id; } }