|
@@ 536-537 (lines=2) @@
|
| 533 |
|
return wp_send_json_error( 'permission denied' ); |
| 534 |
|
|
| 535 |
|
$post_id = 0; |
| 536 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 537 |
|
wp_send_json_error(); |
| 538 |
|
|
| 539 |
|
if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
| 540 |
|
wp_send_json_error(); |
|
@@ 588-589 (lines=2) @@
|
| 585 |
|
return wp_send_json_error( 'permission denied' ); |
| 586 |
|
|
| 587 |
|
$post_id = 0; |
| 588 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 589 |
|
wp_send_json_error(); |
| 590 |
|
|
| 591 |
|
if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
| 592 |
|
wp_send_json_error(); |