From 523390028367bd6d78f20cf2beba76e084645992 Mon Sep 17 00:00:00 2001 From: Geert De Deckere Date: Sun, 27 Jan 2013 12:22:06 +0100 Subject: [PATCH] Also pass on the country to the address fields filters --- classes/class-wc-countries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/class-wc-countries.php b/classes/class-wc-countries.php index ba7730aa312..59c87780eb8 100644 --- a/classes/class-wc-countries.php +++ b/classes/class-wc-countries.php @@ -1038,9 +1038,9 @@ class WC_Countries { 'clear' => true ); - $address_fields = apply_filters('woocommerce_billing_fields', $address_fields); + $address_fields = apply_filters( 'woocommerce_billing_fields', $address_fields, $country ); } else { - $address_fields = apply_filters('woocommerce_shipping_fields', $address_fields); + $address_fields = apply_filters( 'woocommerce_shipping_fields', $address_fields, $country ); } // Return