Permalink
Browse files

Local rates were being ignored if no main rates were set

  • Loading branch information...
1 parent 46653cf commit 4f905a0e676188023768cc511b988940f653874f @mikejolley mikejolley committed Apr 16, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 classes/class-wc-tax.php
  2. +1 −0 readme.txt
@@ -26,7 +26,7 @@ function get_tax_rates() {
$flat_rates = array();
$index = 0;
- if (!empty($tax_rates)) foreach( $tax_rates as $rate ) :
+ if ( ! empty( $tax_rates ) ) foreach( $tax_rates as $rate ) :
// Standard Rate?
if ( isset( $rate['class'] ) && !$rate['class']) $rate['class'] = '*';
@@ -66,7 +66,7 @@ function get_tax_rates() {
endforeach;
- if ( isset( $rate['countries'] ) && !empty($local_tax_rates)) foreach( $local_tax_rates as $rate ) :
+ if ( ! empty( $local_tax_rates ) ) foreach( $local_tax_rates as $rate ) :
// Standard Rate?
if (!$rate['class']) $rate['class'] = '*';
View
@@ -180,6 +180,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Do not show the Additional Information tab on product single page if contents are hidden or not existing.
* Fix - nofollow add to cart links to prevent indexing
* Fix - Add to cart shortcode and hidden products
+* Fix - Local rates were being ignored if no main rates were set
* Localization - Canada post code locale
* Localization - RMB paypal
* Localization - Bundled translation updates

0 comments on commit 4f905a0

Please sign in to comment.