From 971cff77b881a10c002a8596ac595a128350a05e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 8 Aug 2016 17:47:50 +0100 Subject: [PATCH] Fixed unit tests --- includes/abstracts/abstract-wc-order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index c4f478aa3b1..b6198c9c3fa 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -1206,7 +1206,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order { // Inherit tax class from items if ( '' === $shipping_tax_class ) { $tax_rates = array(); - $tax_classes = WC_Tax::get_tax_classes(); + $tax_classes = array_merge( array( '' ), WC_Tax::get_tax_classes() ); $found_tax_classes = $this->get_items_tax_classes(); foreach ( $tax_classes as $tax_class ) {