|
@@ 637-641 (lines=5) @@
|
| 634 |
|
if ( ! is_array( $taxonomies ) ) { |
| 635 |
|
$taxonomies = array( $taxonomies ); |
| 636 |
|
} |
| 637 |
|
foreach ( (array) $taxonomies as $taxonomy ) { |
| 638 |
|
if ( ! taxonomy_exists( $taxonomy ) ) { |
| 639 |
|
return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); |
| 640 |
|
} |
| 641 |
|
} |
| 642 |
|
|
| 643 |
|
$defaults = array( 'order' => 'ASC' ); |
| 644 |
|
$args = wp_parse_args( $args, $defaults ); |
|
@@ 1072-1076 (lines=5) @@
|
| 1069 |
|
} |
| 1070 |
|
|
| 1071 |
|
if ( ! empty( $args['taxonomy'] ) ) { |
| 1072 |
|
foreach ( $args['taxonomy'] as $taxonomy ) { |
| 1073 |
|
if ( ! taxonomy_exists( $taxonomy ) ) { |
| 1074 |
|
return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); |
| 1075 |
|
} |
| 1076 |
|
} |
| 1077 |
|
} |
| 1078 |
|
|
| 1079 |
|
// Don't pass suppress_filter to WP_Term_Query. |