json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 415-418 (lines=4) @@
|
| 412 |
|
|
| 413 |
|
$insert = array(); |
| 414 |
|
|
| 415 |
|
if ( !empty( $input['slug'] ) ) { |
| 416 |
|
$insert['post_name'] = $input['slug']; |
| 417 |
|
unset( $input['slug'] ); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
if ( isset( $input['comments_open'] ) ) { |
| 421 |
|
$insert['comment_status'] = ( true === $input['comments_open'] ) ? 'open' : 'closed'; |
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 462-465 (lines=4) @@
|
| 459 |
|
|
| 460 |
|
$insert = array(); |
| 461 |
|
|
| 462 |
|
if ( !empty( $input['slug'] ) ) { |
| 463 |
|
$insert['post_name'] = $input['slug']; |
| 464 |
|
unset( $input['slug'] ); |
| 465 |
|
} |
| 466 |
|
|
| 467 |
|
if ( isset( $input['discussion'] ) ) { |
| 468 |
|
$discussion = (array) $input['discussion']; |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 433-436 (lines=4) @@
|
| 430 |
|
|
| 431 |
|
$insert = array(); |
| 432 |
|
|
| 433 |
|
if ( !empty( $input['slug'] ) ) { |
| 434 |
|
$insert['post_name'] = $input['slug']; |
| 435 |
|
unset( $input['slug'] ); |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
if ( isset( $input['discussion'] ) ) { |
| 439 |
|
$discussion = (array) $input['discussion']; |