Merge pull request #7618 from SiR-DanieL/patch-4

Replace int cast with absint
This commit is contained in:
Mike Jolley 2015-03-04 10:27:37 +00:00
commit d4ccca7f3d
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'];