From 9eabb9a4fbdc944bd519897fae0bf7fdad6e73d3 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 18 Nov 2013 12:31:51 +0000 Subject: [PATCH] Fix yard conversion Closes #4129 @coenjacobs for .21 --- includes/wc-formatting-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php index 63ff7ea4baf..f35e6c0638b 100644 --- a/includes/wc-formatting-functions.php +++ b/includes/wc-formatting-functions.php @@ -74,7 +74,7 @@ function woocommerce_get_dimension( $dim, $to_unit ) { $dim *= 0.1; break; case 'yd': - $dim *= 0.010936133; + $dim *= 91.44; break; } @@ -90,7 +90,7 @@ function woocommerce_get_dimension( $dim, $to_unit ) { $dim *= 10; break; case 'yd': - $dim *= 91.44; + $dim *= 0.010936133; break; } }