Skip to content

Commit

Permalink
wrong html fix (sovware#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowsar89 authored Sep 11, 2022
1 parent 05494ba commit 993154f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/listing-form/fields/pricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @author wpWax
* @since 6.6
* @version 7.3.1
* @version 7.4.0
*/

if ( ! defined( 'ABSPATH' ) ) exit;
Expand Down Expand Up @@ -67,9 +67,9 @@

<?php
if ( $data['pricing_type'] == 'both' || $data['pricing_type'] == 'price_unit' ) {
$step = $allow_decimal ? ' step="any"' : '';
$step = $allow_decimal ? 'any' : 1;
?>
<input type="<?php echo esc_attr( $data['price_unit_field_type'] ); ?>"<?php echo esc_attr( $step ); ?> id="price" name="price" value="<?php echo esc_attr($price); ?>" class="directorist-form-element directory_field directory_pricing_field" placeholder="<?php echo esc_attr($price_placeholder); ?>"/>
<input type="<?php echo esc_attr( $data['price_unit_field_type'] ); ?>" step="<?php echo esc_attr( $step ); ?>" id="price" name="price" value="<?php echo esc_attr($price); ?>" class="directorist-form-element directory_field directory_pricing_field" placeholder="<?php echo esc_attr($price_placeholder); ?>"/>
<?php
}

Expand Down

0 comments on commit 993154f

Please sign in to comment.