projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 397-399 (lines=3) @@
|
394 |
|
/* add terms by ID */ |
395 |
|
foreach ( $input['terms_by_id'] as $taxonomy => $terms ) { |
396 |
|
// combine with any previous selections |
397 |
|
if ( ! isset( $tax_input[ $taxonomy ] ) || ! is_array( $tax_input[ $taxonomy ] ) ) { |
398 |
|
$tax_input[ $taxonomy ] = array(); |
399 |
|
} |
400 |
|
|
401 |
|
$is_hierarchical = is_taxonomy_hierarchical( $taxonomy ); |
402 |
|
|
projects/plugins/jetpack/modules/search/class.jetpack-search.php 1 location
|
@@ 741-743 (lines=3) @@
|
738 |
|
|
739 |
|
$taxonomy = $tax_query['taxonomy']; |
740 |
|
|
741 |
|
if ( ! isset( $args[ $taxonomy ] ) || ! is_array( $args[ $taxonomy ] ) ) { |
742 |
|
$args[ $taxonomy ] = array(); |
743 |
|
} |
744 |
|
|
745 |
|
$args[ $taxonomy ] = array_merge( $args[ $taxonomy ], $tax_query['terms'] ); |
746 |
|
} |