json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 386-390 (lines=5) @@
|
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
$terms = $input[ $taxonomy_key ]; |
| 386 |
|
if ( is_string( $terms ) ) { |
| 387 |
|
$terms = explode( ',', $terms ); |
| 388 |
|
} else if ( ! is_array( $terms ) ) { |
| 389 |
|
continue; |
| 390 |
|
} |
| 391 |
|
|
| 392 |
|
$input['terms'][ $taxonomy ] = array_merge( |
| 393 |
|
$input['terms'][ $taxonomy ], |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 337-341 (lines=5) @@
|
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
$terms = $input[ $taxonomy_key ]; |
| 337 |
|
if ( is_string( $terms ) ) { |
| 338 |
|
$terms = explode( ',', $terms ); |
| 339 |
|
} else if ( ! is_array( $terms ) ) { |
| 340 |
|
continue; |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
$input[ $term_input_key ][ $taxonomy ] = array_merge( |
| 344 |
|
$input[ $term_input_key ][ $taxonomy ], |