From c8ffee57ff05fb37a75f29ad609089155480154e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 3 Oct 2014 10:11:14 +0100 Subject: [PATCH] [2.2] Ensure rate is double Fixes #6442 --- includes/admin/settings/class-wc-settings-tax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/settings/class-wc-settings-tax.php b/includes/admin/settings/class-wc-settings-tax.php index 1f9d1107c01..d9a4c77aeac 100644 --- a/includes/admin/settings/class-wc-settings-tax.php +++ b/includes/admin/settings/class-wc-settings-tax.php @@ -553,7 +553,7 @@ class WC_Settings_Tax extends WC_Settings_Page { $state = strtoupper( wc_clean( $tax_rate_state[ $key ][ $new_key ] ) ); $postcode = wc_clean( $tax_rate_postcode[ $key ][ $new_key ] ); $city = wc_clean( $tax_rate_city[ $key ][ $new_key ] ); - $rate = number_format( wc_clean( $tax_rate[ $key ][ $new_key ] ), 4, '.', '' ); + $rate = number_format( (double) wc_clean( $tax_rate[ $key ][ $new_key ] ), 4, '.', '' ); $name = wc_clean( $tax_rate_name[ $key ][ $new_key ] ); $priority = absint( wc_clean( $tax_rate_priority[ $key ][ $new_key ] ) ); $compound = isset( $tax_rate_compound[ $key ][ $new_key ] ) ? 1 : 0;