json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 216-219 (lines=4) @@
|
| 213 |
|
|
| 214 |
|
$insert = array(); |
| 215 |
|
|
| 216 |
|
if ( !empty( $input['slug'] ) ) { |
| 217 |
|
$insert['post_name'] = $input['slug']; |
| 218 |
|
unset( $input['slug'] ); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
if ( isset( $input['comments_open'] ) ) { |
| 222 |
|
$insert['comment_status'] = ( true === $input['comments_open'] ) ? 'open' : 'closed'; |
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 221-224 (lines=4) @@
|
| 218 |
|
|
| 219 |
|
$insert = array(); |
| 220 |
|
|
| 221 |
|
if ( !empty( $input['slug'] ) ) { |
| 222 |
|
$insert['post_name'] = $input['slug']; |
| 223 |
|
unset( $input['slug'] ); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
if ( isset( $input['discussion'] ) ) { |
| 227 |
|
$discussion = (array) $input['discussion']; |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 221-224 (lines=4) @@
|
| 218 |
|
|
| 219 |
|
$insert = array(); |
| 220 |
|
|
| 221 |
|
if ( !empty( $input['slug'] ) ) { |
| 222 |
|
$insert['post_name'] = $input['slug']; |
| 223 |
|
unset( $input['slug'] ); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
if ( isset( $input['discussion'] ) ) { |
| 227 |
|
$discussion = (array) $input['discussion']; |