@@ 503-504 (lines=2) @@ | ||
500 | return wp_send_json_error( 'permission denied' ); |
|
501 | ||
502 | $post_id = 0; |
|
503 | if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
|
504 | wp_send_json_error(); |
|
505 | ||
506 | if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
|
507 | wp_send_json_error(); |
|
@@ 555-556 (lines=2) @@ | ||
552 | return wp_send_json_error( 'permission denied' ); |
|
553 | ||
554 | $post_id = 0; |
|
555 | if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
|
556 | wp_send_json_error(); |
|
557 | ||
558 | if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
|
559 | wp_send_json_error(); |