Skip to content

Commit

Permalink
Merge pull request woocommerce#14933 from woocommerce/fix/14815
Browse files Browse the repository at this point in the history
Use numeric, not decimal
  • Loading branch information
claudiosanches authored May 8, 2017
2 parents 0a5dfd4 + 24fe8db commit 58fa854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/wc-product-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit-tests/product/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 58fa854

Please sign in to comment.