From 7bda0041263de0adaed891b2b522600765bfa7df Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 23 May 2016 17:50:04 -0300 Subject: [PATCH] [REST API] Fixed order note ID type --- includes/api/class-wc-rest-order-notes-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-rest-order-notes-controller.php b/includes/api/class-wc-rest-order-notes-controller.php index 3b1ea077ad0..242dada4125 100644 --- a/includes/api/class-wc-rest-order-notes-controller.php +++ b/includes/api/class-wc-rest-order-notes-controller.php @@ -310,7 +310,7 @@ class WC_REST_Order_Notes_Controller extends WC_REST_Controller { */ public function prepare_item_for_response( $note, $request ) { $data = array( - 'id' => $note->comment_ID, + 'id' => (int) $note->comment_ID, 'date_created' => wc_rest_prepare_date_response( $note->comment_date_gmt ), 'note' => $note->comment_content, 'customer_note' => (bool) get_comment_meta( $note->comment_ID, 'is_customer_note', true ),