From 3590bfb198dcd2b81d76ecbbf5e834db17ea807f Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 19 Jan 2015 11:30:30 +0000 Subject: [PATCH] Standard tax class is empty. Fixes #7142 --- includes/api/class-wc-api-orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-api-orders.php b/includes/api/class-wc-api-orders.php index c094765c879..8cbefb382cf 100644 --- a/includes/api/class-wc-api-orders.php +++ b/includes/api/class-wc-api-orders.php @@ -996,7 +996,7 @@ class WC_API_Orders extends WC_API_Resource { // if taxable, tax class and total are required if ( isset( $fee['taxable'] ) && $fee['taxable'] ) { - if ( empty( $fee['tax_class'] ) ) { + if ( ! isset( $fee['tax_class'] ) ) { throw new WC_API_Exception( 'woocommerce_invalid_fee_item', __( 'Fee tax class is required when fee is taxable', 'woocommerce' ), 400 ); }