|
@@ 619-620 (lines=2) @@
|
| 616 |
|
return wp_send_json_error( 'permission denied' ); |
| 617 |
|
|
| 618 |
|
$post_id = 0; |
| 619 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 620 |
|
wp_send_json_error(); |
| 621 |
|
|
| 622 |
|
if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
| 623 |
|
wp_send_json_error(); |
|
@@ 671-672 (lines=2) @@
|
| 668 |
|
return wp_send_json_error( 'permission denied' ); |
| 669 |
|
|
| 670 |
|
$post_id = 0; |
| 671 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 672 |
|
wp_send_json_error(); |
| 673 |
|
|
| 674 |
|
if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
| 675 |
|
wp_send_json_error(); |