PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.2.02
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.2.02
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/FrmFieldRadio.php +1 -42 6.25.15.2.02 View file →
@@ -27,13 +27,8 @@
27 27 * @since 3.06.01
28 28 */
29 29 protected $has_for_label = false;
30 30
31 - /**
32 - * @var bool
33 - */
34 - protected $array_allowed = true;
35 -
36 31 protected function input_html() {
37 32 return $this->multiple_input_html();
38 33 }
39 34
@@ -41,17 +36,8 @@
41 36 return $this->include_front_form_file();
42 37 }
43 38
44 39 /**
45 - * @return bool[]
46 - */
47 - protected function field_settings_for_type() {
48 - return array(
49 - 'invalid' => true,
50 - );
51 - }
52 -
53 - /**
54 40 * Get the type of field being displayed.
55 41 *
56 42 * @since 4.02.01
57 43 * @return array
@@ -61,11 +47,8 @@
61 47 $this->type => true,
62 48 );
63 49 }
64 50
65 - /**
66 - * @return array
67 - */
68 51 protected function extra_field_opts() {
69 52 $form_id = $this->get_field_column( 'form_id' );
70 53
71 54 return array(
@@ -72,11 +55,8 @@
72 55 'align' => FrmStylesController::get_style_val( 'radio_align', ( empty( $form_id ) ? 'default' : $form_id ) ),
73 56 );
74 57 }
75 58
76 - /**
77 - * @return string[]
78 - */
79 59 protected function new_field_settings() {
80 60 return array(
81 61 'options' => serialize(
82 62 array(
@@ -88,38 +68,17 @@
88 68 }
89 69
90 70 /**
91 71 * @since 4.06
92 - *
93 - * @return void
94 72 */
95 73 protected function show_priority_field_choices( $args = array() ) {
96 - include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/radio-images.php';
74 + include( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/radio-images.php' );
97 75 }
98 76
99 - /**
100 - * @return string
101 - */
102 77 protected function include_front_form_file() {
103 78 return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/front-end/radio-field.php';
104 79 }
105 80
106 - /**
107 - * @return bool
108 - */
109 81 protected function show_readonly_hidden() {
110 82 return true;
111 - }
112 -
113 - /**
114 - * Unset aria-invalid for radio buttons because it's not valid for radio buttons.
115 - * Instead aria-invalid is added to the radiogroup parent element.
116 - *
117 - * @since 6.25
118 - *
119 - * @param array $shortcode_atts
120 - * @param array $args
121 - */
122 - public function set_aria_invalid_error( &$shortcode_atts, $args ) {
123 - unset( $shortcode_atts['aria-invalid'] );
124 83 }
125 84 }