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