json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 218-220 (lines=3) @@
|
| 215 |
|
} |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
if ( isset( $input['categories'] ) && empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 219 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
unset( $input['tags'], $input['categories'] ); |
| 223 |
|
|
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 259-261 (lines=3) @@
|
| 256 |
|
} |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if ( isset( $input['terms']['category'] ) && empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 260 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
unset( $input['terms'], $input['tags'], $input['categories'] ); |
| 264 |
|
|