@@ 357-358 (lines=2) @@ | ||
354 | return wp_send_json_error( 'permission denied' ); |
|
355 | ||
356 | $post_id = 0; |
|
357 | if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
|
358 | wp_send_json_error(); |
|
359 | ||
360 | if ( ! isset( $_POST['vp_nonces']['update'] ) ) |
|
361 | wp_send_json_error(); |
|
@@ 409-410 (lines=2) @@ | ||
406 | return wp_send_json_error( 'permission denied' ); |
|
407 | ||
408 | $post_id = 0; |
|
409 | if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) ) |
|
410 | wp_send_json_error(); |
|
411 | ||
412 | if ( ! isset( $_POST['vp_nonces']['delete'] ) ) |
|
413 | wp_send_json_error(); |