json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 607-609 (lines=3) @@
|
| 604 |
|
return $return; |
| 605 |
|
} |
| 606 |
|
|
| 607 |
|
if ( isset( $input['type'] ) && 'revision' === $input['type'] ) { |
| 608 |
|
$return['preview_nonce'] = wp_create_nonce( 'post_preview_' . $input['parent'] ); |
| 609 |
|
} |
| 610 |
|
|
| 611 |
|
if ( isset( $sticky ) ) { |
| 612 |
|
// workaround for sticky test occasionally failing, maybe a race condition with stick_post() above |
json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 603-605 (lines=3) @@
|
| 600 |
|
return $return; |
| 601 |
|
} |
| 602 |
|
|
| 603 |
|
if ( isset( $input['type'] ) && 'revision' === $input['type'] ) { |
| 604 |
|
$return['preview_nonce'] = wp_create_nonce( 'post_preview_' . $input['parent'] ); |
| 605 |
|
} |
| 606 |
|
|
| 607 |
|
if ( isset( $sticky ) ) { |
| 608 |
|
// workaround for sticky test occasionally failing, maybe a race condition with stick_post() above |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 607-609 (lines=3) @@
|
| 604 |
|
return $return; |
| 605 |
|
} |
| 606 |
|
|
| 607 |
|
if ( isset( $input['type'] ) && 'revision' === $input['type'] ) { |
| 608 |
|
$return['preview_nonce'] = wp_create_nonce( 'post_preview_' . $input['parent'] ); |
| 609 |
|
} |
| 610 |
|
|
| 611 |
|
if ( isset( $sticky ) ) { |
| 612 |
|
// workaround for sticky test occasionally failing, maybe a race condition with stick_post() above |