diff --git a/includes/wc-product-functions.php b/includes/wc-product-functions.php index 8fbb0a8b242d1..a4025a799536a 100644 --- a/includes/wc-product-functions.php +++ b/includes/wc-product-functions.php @@ -782,7 +782,7 @@ function wc_get_min_max_price_meta_query( $args ) { 'key' => '_price', 'value' => array( $min, $max ), 'compare' => 'BETWEEN', - 'type' => 'DECIMAL', + 'type' => 'NUMERIC', ); } diff --git a/tests/unit-tests/product/functions.php b/tests/unit-tests/product/functions.php index bc2005eaea8be..6fb6e38071bdb 100644 --- a/tests/unit-tests/product/functions.php +++ b/tests/unit-tests/product/functions.php @@ -322,7 +322,7 @@ public function test_wc_get_min_max_price_meta_query() { 'key' => '_price', 'value' => array( 10, 100 ), 'compare' => 'BETWEEN', - 'type' => 'DECIMAL', + 'type' => 'NUMERIC', ), $meta_query ); }