PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/actions/indexing/indexable-term-indexation-action.php +4 -4 27.6 → trunk View file →
@@ -84,12 +84,12 @@
84 84
85 85 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- Function get_select_query returns a prepared query.
86 86 $term_ids = ( $query === '' ) ? [] : $this->wpdb->get_col( $query );
87 87
88 - $indexables = [];
89 - foreach ( $term_ids as $term_id ) {
90 - $indexables[] = $this->repository->find_by_id_and_type( (int) $term_id, 'term' );
91 - }
88 + $indexables = $this->repository->find_by_multiple_ids_and_type(
89 + \array_map( 'intval', $term_ids ),
90 + 'term',
91 + );
92 92
93 93 if ( \count( $indexables ) > 0 ) {
94 94 \delete_transient( static::UNINDEXED_COUNT_TRANSIENT );
95 95 \delete_transient( static::UNINDEXED_LIMITED_COUNT_TRANSIENT );