modules/search/class.jetpack-search.php 1 location
|
@@ 668-670 (lines=3) @@
|
| 665 |
|
|
| 666 |
|
$taxonomy = $tax_query['taxonomy']; |
| 667 |
|
|
| 668 |
|
if ( ! isset( $args[ $taxonomy ] ) || ! is_array( $args[ $taxonomy ] ) ) { |
| 669 |
|
$args[ $taxonomy ] = array(); |
| 670 |
|
} |
| 671 |
|
|
| 672 |
|
$args[ $taxonomy ] = array_merge( $args[ $taxonomy ], $tax_query['terms'] ); |
| 673 |
|
} |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 392-394 (lines=3) @@
|
| 389 |
|
/* add terms by ID */ |
| 390 |
|
foreach ( $input['terms_by_id'] as $taxonomy => $terms ) { |
| 391 |
|
// combine with any previous selections |
| 392 |
|
if ( ! isset( $tax_input[ $taxonomy ] ) || ! is_array( $tax_input[ $taxonomy ] ) ) { |
| 393 |
|
$tax_input[ $taxonomy ] = array(); |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
$is_hierarchical = is_taxonomy_hierarchical( $taxonomy ); |
| 397 |
|
|