|
@@ 500-501 (lines=2) @@
|
| 497 |
|
return wp_send_json_error( 'permission denied' ); |
| 498 |
|
|
| 499 |
|
$post_id = 0; |
| 500 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 501 |
|
wp_send_json_error(); |
| 502 |
|
|
| 503 |
|
if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
| 504 |
|
wp_send_json_error(); |
|
@@ 552-553 (lines=2) @@
|
| 549 |
|
return wp_send_json_error( 'permission denied' ); |
| 550 |
|
|
| 551 |
|
$post_id = 0; |
| 552 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 553 |
|
wp_send_json_error(); |
| 554 |
|
|
| 555 |
|
if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
| 556 |
|
wp_send_json_error(); |