diff --git a/templates/listing-form/custom-fields/number.php b/templates/listing-form/custom-fields/number.php index 274402a8e1..4b489d6d2c 100644 --- a/templates/listing-form/custom-fields/number.php +++ b/templates/listing-form/custom-fields/number.php @@ -8,7 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; $data_min = $data['min_value'] ?? ''; $data_max = $data['max_value'] ?? ''; -$data_step = absint( $data['step'] ?? 1 ); +$data_step = max( 0, floatval( $data['step'] ?? 1 ) );; ?>