[2.3] prices_include_tax boolean fix

Closes #7788
This commit is contained in:
Mike Jolley 2015-03-23 13:35:36 +00:00
parent 074729138f
commit 70bf6fc842
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**