| @@ -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 | } |