json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 226-229 (lines=4) @@
|
| 223 |
|
|
| 224 |
|
$insert = array(); |
| 225 |
|
|
| 226 |
|
if ( !empty( $input['slug'] ) ) { |
| 227 |
|
$insert['post_name'] = $input['slug']; |
| 228 |
|
unset( $input['slug'] ); |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
if ( isset( $input['comments_open'] ) ) { |
| 232 |
|
$insert['comment_status'] = ( true === $input['comments_open'] ) ? 'open' : 'closed'; |
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 267-270 (lines=4) @@
|
| 264 |
|
|
| 265 |
|
$insert = array(); |
| 266 |
|
|
| 267 |
|
if ( !empty( $input['slug'] ) ) { |
| 268 |
|
$insert['post_name'] = $input['slug']; |
| 269 |
|
unset( $input['slug'] ); |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
if ( isset( $input['discussion'] ) ) { |
| 273 |
|
$discussion = (array) $input['discussion']; |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 268-271 (lines=4) @@
|
| 265 |
|
|
| 266 |
|
$insert = array(); |
| 267 |
|
|
| 268 |
|
if ( !empty( $input['slug'] ) ) { |
| 269 |
|
$insert['post_name'] = $input['slug']; |
| 270 |
|
unset( $input['slug'] ); |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
if ( isset( $input['discussion'] ) ) { |
| 274 |
|
$discussion = (array) $input['discussion']; |