From 4dde06234a4a570c5d064b565da3fb6339877a52 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 31 May 2016 17:39:34 -0300 Subject: [PATCH] [REST API] Updated product schema --- includes/api/class-wc-rest-products-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/class-wc-rest-products-controller.php b/includes/api/class-wc-rest-products-controller.php index 305dd4ebb30..a41cff26acf 100644 --- a/includes/api/class-wc-rest-products-controller.php +++ b/includes/api/class-wc-rest-products-controller.php @@ -1857,13 +1857,13 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller { 'download_limit' => array( 'description' => __( 'Amount of times the product can be downloaded.', 'woocommerce' ), 'type' => 'integer', - 'default' => null, + 'default' => -1, 'context' => array( 'view', 'edit' ), ), 'download_expiry' => array( 'description' => __( 'Number of days that the customer has up to be able to download the product.', 'woocommerce' ), 'type' => 'integer', - 'default' => null, + 'default' => -1, 'context' => array( 'view', 'edit' ), ), 'download_type' => array(