|
@@ 510-511 (lines=2) @@
|
| 507 |
|
return wp_send_json_error( 'permission denied' ); |
| 508 |
|
|
| 509 |
|
$post_id = 0; |
| 510 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 511 |
|
wp_send_json_error(); |
| 512 |
|
|
| 513 |
|
if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
| 514 |
|
wp_send_json_error(); |
|
@@ 562-563 (lines=2) @@
|
| 559 |
|
return wp_send_json_error( 'permission denied' ); |
| 560 |
|
|
| 561 |
|
$post_id = 0; |
| 562 |
|
if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
| 563 |
|
wp_send_json_error(); |
| 564 |
|
|
| 565 |
|
if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
| 566 |
|
wp_send_json_error(); |