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 |
|
|
modules/search/class.jetpack-search.php 1 location
|
@@ 694-696 (lines=3) @@
|
691 |
|
|
692 |
|
$taxonomy = $tax_query['taxonomy']; |
693 |
|
|
694 |
|
if ( ! isset( $args[ $taxonomy ] ) || ! is_array( $args[ $taxonomy ] ) ) { |
695 |
|
$args[ $taxonomy ] = array(); |
696 |
|
} |
697 |
|
|
698 |
|
$args[ $taxonomy ] = array_merge( $args[ $taxonomy ], $tax_query['terms'] ); |
699 |
|
} |