json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 230-232 (lines=3) @@
|
227 |
|
/* add terms by ID */ |
228 |
|
foreach ( $input['terms_by_id'] as $taxonomy => $terms ) { |
229 |
|
// combine with any previous selections |
230 |
|
if ( ! isset( $tax_input[ $taxonomy ] ) || ! is_array( $tax_input[ $taxonomy ] ) ) { |
231 |
|
$tax_input[ $taxonomy ] = array(); |
232 |
|
} |
233 |
|
|
234 |
|
$is_hierarchical = is_taxonomy_hierarchical( $taxonomy ); |
235 |
|
|
modules/search/class.jetpack-search.php 1 location
|
@@ 358-360 (lines=3) @@
|
355 |
|
|
356 |
|
$taxonomy = $tax_query['taxonomy']; |
357 |
|
|
358 |
|
if ( ! isset( $args[ $taxonomy ] ) || ! is_array( $args[ $taxonomy ] ) ) { |
359 |
|
$args[ $taxonomy ] = array(); |
360 |
|
} |
361 |
|
|
362 |
|
$args[ $taxonomy ] = array_merge( $args[ $taxonomy ], $tax_query['terms'] ); |
363 |
|
} |