From 5b079343e81b0d263a9b426651fb1ff150a6452a Mon Sep 17 00:00:00 2001 From: Khan M Rashedun-Naby Date: Thu, 24 May 2018 23:02:07 +0600 Subject: [PATCH] Early return --- includes/wc-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 41ef61d2b61..53f23c195a4 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1607,7 +1607,7 @@ function wc_add_number_precision_deep( $value, $round = true ) { */ function wc_remove_number_precision_deep( $value ) { if ( ! is_array( $value ) ) { - $value = wc_remove_number_precision( $value ); + return wc_remove_number_precision( $value ); } foreach ( $value as $key => $sub_value ) {