PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/fields/FrmFieldNumber.php +3 -2 6.46.8 View file →
@@ -67,9 +67,9 @@
67 67 $errors = array();
68 68
69 69 $this->remove_commas_from_number( $args );
70 70
71 - //validate the number format
71 + // Validate the number format.
72 72 if ( ! is_numeric( $args['value'] ) && '' !== $args['value'] ) {
73 73 $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' );
74 74 }
75 75
@@ -105,9 +105,10 @@
105 105 * @return void
106 106 */
107 107 private function validate_step( &$errors, $args ) {
108 108 if ( isset( $errors[ 'field' . $args['id'] ] ) ) {
109 - return; // Don't need to check if value is invalid before.
109 + // Don't need to check if value is invalid before.
110 + return;
110 111 }
111 112
112 113 $step = FrmField::get_option( $this->field, 'step' );
113 114 if ( ! $step || ! is_numeric( $step ) ) {