json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 219-221 (lines=3) @@
|
| 216 |
|
} |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
if ( isset( $input['categories'] ) && empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 220 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
unset( $input['tags'], $input['categories'] ); |
| 224 |
|
|
json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 214-216 (lines=3) @@
|
| 211 |
|
} |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if ( isset( $input['categories'] ) && empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 215 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
unset( $input['tags'], $input['categories'] ); |
| 219 |
|
|
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 218-221 (lines=4) @@
|
| 215 |
|
} |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
if ( ( isset( $input['categories'] ) || isset( $input['categories_by_id'] ) ) |
| 219 |
|
&& empty( $tax_input['category'] ) && 'revision' !== $post_type->name ) { |
| 220 |
|
$tax_input['category'][] = get_option( 'default_category' ); |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
unset( $input['tags'], $input['categories'], $input['tags_by_id'], $input['categories_by_id'] ); |
| 224 |
|
|