diff --git a/includes/wc-order-functions.php b/includes/wc-order-functions.php index 3d72c451b70..4abd4bd8e81 100644 --- a/includes/wc-order-functions.php +++ b/includes/wc-order-functions.php @@ -294,7 +294,6 @@ function wc_register_order_type( $type, $args = array() ) { /** * Return the count of processing orders. * - * @access public * @return int */ function wc_processing_order_count() { @@ -907,13 +906,15 @@ function wc_get_order_note( $data ) { } return (object) apply_filters( - 'woocommerce_get_order_note', array( + 'woocommerce_get_order_note', + array( 'id' => (int) $data->comment_ID, 'date_created' => wc_string_to_datetime( $data->comment_date ), 'content' => $data->comment_content, 'customer_note' => (bool) get_comment_meta( $data->comment_ID, 'is_customer_note', true ), 'added_by' => __( 'WooCommerce', 'woocommerce' ) === $data->comment_author ? 'system' : $data->comment_author, - ), $data + ), + $data ); }