Replies: 0
Hi Takayuki
Great plugin, thank you very much! One small thing though: It would be nice, if you could use decimal numbers in the number fields ([number]
and [range]
), which is valid markup.
I would suggest the following code alterations, so you can use either a integer or a float as a min
, max
and step
value:
contact-form-7/modules/number.php (beginning line 37):
$atts['min'] = $tag->get_option( 'min', 'signed_numeric', true ),
$atts['max'] = $tag->get_option( 'max', 'signed_numeric', true ),
$atts['step'] = $tag->get_option( 'step', 'numeric', true );
contact-form-7/includes/shortcodes.php (after line 255)
'numeric' => '([0-9]+[.])?[0-9]+',
'signed_numeric' => '-?([0-9]+[.])?[0-9]+',
Regards,
monoroc