Code Duplication    Length = 5-5 lines in 2 locations

wp-includes/taxonomy.php 2 locations

@@ 737-741 (lines=5) @@
734
	if ( ! is_array( $taxonomies ) ) {
735
		$taxonomies = array( $taxonomies );
736
	}
737
	foreach ( (array) $taxonomies as $taxonomy ) {
738
		if ( ! taxonomy_exists( $taxonomy ) ) {
739
			return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) );
740
		}
741
	}
742
743
	$defaults = array( 'order' => 'ASC' );
744
	$args = wp_parse_args( $args, $defaults );
@@ 1210-1214 (lines=5) @@
1207
	}
1208
1209
	if ( ! empty( $args['taxonomy'] ) ) {
1210
		foreach ( $args['taxonomy'] as $taxonomy ) {
1211
			if ( ! taxonomy_exists( $taxonomy ) ) {
1212
				return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) );
1213
			}
1214
		}
1215
	}
1216
1217
	$terms = $term_query->query( $args );