@@ 398-399 (lines=2) @@ | ||
395 | return wp_send_json_error( 'permission denied' ); |
|
396 | ||
397 | $post_id = 0; |
|
398 | if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
|
399 | wp_send_json_error(); |
|
400 | ||
401 | if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
|
402 | wp_send_json_error(); |
|
@@ 450-451 (lines=2) @@ | ||
447 | return wp_send_json_error( 'permission denied' ); |
|
448 | ||
449 | $post_id = 0; |
|
450 | if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
|
451 | wp_send_json_error(); |
|
452 | ||
453 | if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
|
454 | wp_send_json_error(); |