PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
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 | admin/import/plugins/class-import-wpseo.php +13 -2 18.1 → 28.5 View file →
@@ -192,9 +192,14 @@
192 192 *
193 193 * @return void
194 194 */
195 195 private function import_taxonomy_metas() {
196 - $terms = get_terms( get_taxonomies(), [ 'hide_empty' => false ] );
196 + $terms = get_terms(
197 + [
198 + 'taxonomy' => get_taxonomies(),
199 + 'hide_empty' => false,
200 + ],
201 + );
197 202 $tax_meta = get_option( 'wpseo_taxonomy_meta' );
198 203
199 204 foreach ( $terms as $term ) {
200 205 $this->import_taxonomy_description( $tax_meta, $term->taxonomy, $term->term_id );
@@ -290,9 +295,15 @@
290 295 *
291 296 * @return void
292 297 */
293 298 private function cleanup_term_meta() {
294 - $terms = get_terms( get_taxonomies(), [ 'hide_empty' => false ] );
299 + $terms = get_terms(
300 + [
301 + 'taxonomy' => get_taxonomies(),
302 + 'hide_empty' => false,
303 + ],
304 + );
305 +
295 306 foreach ( $terms as $term ) {
296 307 $this->delete_taxonomy_metas( $term->taxonomy, $term->term_id );
297 308 }
298 309 }