Early return
This commit is contained in:
parent
2725cd56d4
commit
5b079343e8
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue