json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 310-312 (lines=3) @@
|
| 307 |
|
wp_untrash_post( $post->ID ); |
| 308 |
|
$untashed_post = get_post( $post->ID ); |
| 309 |
|
// Lets make sure that we use the revert the slug. |
| 310 |
|
if ( isset( $untashed_post->post_name ) && $untashed_post->post_name . '__trashed' === $input['slug'] ) { |
| 311 |
|
unset( $input['slug'] ); |
| 312 |
|
} |
| 313 |
|
} |
| 314 |
|
} |
| 315 |
|
|
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 1008-1010 (lines=3) @@
|
| 1005 |
|
wp_untrash_post( $post->ID ); |
| 1006 |
|
$untrashed_post = get_post( $post->ID ); |
| 1007 |
|
// Lets make sure that we use the reverted the slug. |
| 1008 |
|
if ( isset( $untrashed_post->post_name ) && $untrashed_post->post_name . '__trashed' === $input['slug'] ) { |
| 1009 |
|
unset( $input['slug'] ); |
| 1010 |
|
} |
| 1011 |
|
return $input; |
| 1012 |
|
} |
| 1013 |
|
|