json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 407-409 (lines=3) @@
|
| 404 |
|
} |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
if ( isset( $input['categories'] ) && empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 408 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
unset( $input['tags'], $input['categories'] ); |
| 412 |
|
|
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 454-456 (lines=3) @@
|
| 451 |
|
} |
| 452 |
|
} |
| 453 |
|
|
| 454 |
|
if ( isset( $input['terms']['category'] ) && empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 455 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 456 |
|
} |
| 457 |
|
|
| 458 |
|
unset( $input['terms'], $input['tags'], $input['categories'] ); |
| 459 |
|
|