replace int cast with absint
This commit is contained in:
parent
a53c8a2292
commit
147ccf3ef8
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue