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