PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22
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/FrmEntryValidate.php +2 -7 6.256.22 View file →
@@ -129,9 +129,9 @@
129 129 );
130 130 $args = wp_parse_args( $args, $defaults );
131 131
132 132 if ( empty( $args['parent_field_id'] ) ) {
133 - $value = $values['item_meta'][ $args['id'] ] ?? '';
133 + $value = isset( $values['item_meta'][ $args['id'] ] ) ? $values['item_meta'][ $args['id'] ] : '';
134 134 } else {
135 135 // value is from a nested form
136 136 $value = $values;
137 137 }
@@ -222,13 +222,8 @@
222 222 if ( '' === $value ) {
223 223 return true;
224 224 }
225 225
226 - $field_object = FrmFieldFactory::get_field_type( $field->type, $field );
227 - if ( ! $field_object->field_type_has_options_settings() ) {
228 - return true;
229 - }
230 -
231 226 if ( in_array( $field->type, array( 'likert', 'ranking' ), true ) ) {
232 227 // Ignore these field types automatically.
233 228 return true;
234 229 }
@@ -915,9 +910,9 @@
915 910 }
916 911
917 912 // Check if submitted value is same as one of field option.
918 913 foreach ( $field_data->options as $option ) {
919 - $option_value = ! is_array( $option ) ? $option : ( $option['value'] ?? '' );
914 + $option_value = ! is_array( $option ) ? $option : ( isset( $option['value'] ) ? $option['value'] : '' );
920 915 if ( $values['item_meta']['other'][ $field_data->id ] === $option_value ) {
921 916 return true;
922 917 }
923 918 }