From 70bf6fc842c55cfa2daea5f6aec41fc5ee31ed21 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 23 Mar 2015 13:35:36 +0000 Subject: [PATCH] [2.3] prices_include_tax boolean fix Closes #7788 --- 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 6da57186e64..6c57d07c775 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -834,7 +834,7 @@ abstract class WC_Abstract_Order { } // Orders store the state of prices including tax when created - $this->prices_include_tax = metadata_exists( 'post', $this->id, '_prices_include_tax' ) ? get_post_meta( $this->id, '_prices_include_tax', true ) : $this->prices_include_tax; + $this->prices_include_tax = metadata_exists( 'post', $this->id, '_prices_include_tax' ) ? get_post_meta( $this->id, '_prices_include_tax', true ) === 'yes' : $this->prices_include_tax; } /**