Prevent arrays which fail the empty() check
This commit is contained in:
parent
dc20a8f27e
commit
a4ec7d04d3
|
@ -19,8 +19,8 @@ class WC_Tax {
|
|||
if (!is_array($this->parsed_rates)) :
|
||||
global $woocommerce;
|
||||
|
||||
$tax_rates = (array) get_option('woocommerce_tax_rates');
|
||||
$local_tax_rates = (array) get_option('woocommerce_local_tax_rates');
|
||||
$tax_rates = array_filter( (array) get_option('woocommerce_tax_rates') );
|
||||
$local_tax_rates = array_filter( (array) get_option('woocommerce_local_tax_rates') );
|
||||
|
||||
$parsed_rates = array();
|
||||
$flat_rates = array();
|
||||
|
|
Loading…
Reference in New Issue