replace int cast with absint

This commit is contained in:
Nicola Mustone 2015-03-03 17:36:47 +01:00
parent a53c8a2292
commit 147ccf3ef8
1 changed files with 1 additions and 1 deletions

View File

@ -1482,7 +1482,7 @@ class WC_AJAX {
check_ajax_referer( 'add-order-note', 'security' );
$post_id = (int) $_POST['post_id'];
$post_id = absint( $_POST['post_id'] );
$note = wp_kses_post( trim( stripslashes( $_POST['note'] ) ) );
$note_type = $_POST['note_type'];