diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index eaa380a1bd..9c4dc5f76d 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3418,7 +3418,6 @@ function update_object_term_cache( $object_ids, $object_type ) { foreach ( $cache_values as $id => $value ) { if ( false === $value ) { $non_cached_ids[] = $id; - break; } } } @@ -3427,6 +3426,8 @@ function update_object_term_cache( $object_ids, $object_type ) { return false; } + $non_cached_ids = array_unique( $non_cached_ids ); + $terms = wp_get_object_terms( $non_cached_ids, $taxonomies, diff --git a/wp-includes/version.php b/wp-includes/version.php index 9b7810c849..91e00db4af 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48186'; +$wp_version = '5.5-alpha-48187'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.