PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.5.5
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.5.5
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 +17 -8 6.4.25.5.5 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' );
@@ -915,6 +908,22 @@
915 908 * @return array
916 909 */
917 910 public static function include_single_field( $field_id, $values, $form_id = 0 ) {
918 911 return FrmDeprecated::include_single_field( $field_id, $values, $form_id );
912 + }
913 +
914 + /**
915 + * @deprecated 2.3
916 + * @codeCoverageIgnore
917 + */
918 + public static function edit_option() {
919 + FrmDeprecated::deprecated( __METHOD__, '2.3' );
920 + }
921 +
922 + /**
923 + * @deprecated 2.3
924 + * @codeCoverageIgnore
925 + */
926 + public static function delete_option() {
927 + FrmDeprecated::deprecated( __METHOD__, '2.3' );
919 928 }
920 929 }