PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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/views/frm-fields/back-end/radio-field.php +14 -2 6.27 → trunk View file →
@@ -1,5 +1,15 @@
1 1 <?php
2 +/**
3 + * Radio field front-end input.
4 + *
5 + * @package Formidable
6 + *
7 + * @var array $field Field data including 'post_field', 'type', 'options', 'value'.
8 + * @var string $field_name HTML name attribute for the radio inputs.
9 + * @var string $html_id HTML id prefix for each radio option.
10 + */
11 +
2 12 if ( ! defined( 'ABSPATH' ) ) {
3 13 die( 'You are not allowed to call this page directly.' );
4 14 }
5 15
@@ -13,9 +23,8 @@
13 23 ?>
14 24 <div class="frm_radio">
15 25 <label for="<?php echo esc_attr( $html_id . '-' . $opt_key ); ?>">
16 26 <?php
17 -
18 27 $checked = FrmAppHelper::check_selected( $field['value'], $field_val ) ? 'checked="checked" ' : ' ';
19 28 $other_opt = false;
20 29 $other_args = FrmFieldsHelper::prepare_other_input( compact( 'field_name', 'opt_key', 'field' ), $other_opt, $checked );
21 30 ?>
@@ -22,9 +31,12 @@
22 31 <input type="radio" name="<?php echo esc_attr( $field_name ); ?>" id="<?php echo esc_attr( $html_id . '-' . $opt_key ); ?>" value="<?php echo esc_attr( $field_val ); ?>" <?php
23 32 echo $checked; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
24 33 do_action( 'frm_field_input_html', $field );
25 34 ?>/>
26 - <?php echo ' ' . FrmAppHelper::kses( $opt, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
35 + <?php
36 + echo ' ';
37 + FrmAppHelper::kses_echo( $opt, 'all' );
38 + ?>
27 39 </label>
28 40 <?php
29 41 FrmFieldsHelper::include_other_input(
30 42 array(