PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2.2
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/controllers/FrmFieldsController.php +1 -8 6.4.16.2.2 View file →
@@ -752,16 +752,9 @@
752 752 * @param array $field
753 753 * @param array $add_html
754 754 */
755 755 private static function maybe_add_html_required( $field, array &$add_html ) {
756 - $excluded_field_types =
757 - FrmField::is_radio( $field ) ||
758 - FrmField::is_checkbox( $field ) ||
759 - FrmField::is_field_type( $field, 'file' ) ||
760 - FrmField::is_field_type( $field, 'nps' ) ||
761 - FrmField::is_field_type( $field, 'scale' );
762 -
763 - if ( $excluded_field_types ) {
756 + if ( in_array( $field['type'], array( 'file', 'data', 'lookup' ), true ) ) {
764 757 return;
765 758 }
766 759
767 760 $include_html = FrmAppHelper::meets_min_pro_version( '3.06.01' );