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/field-choices.php +11 -2 6.5 → trunk View file →
@@ -1,13 +1,22 @@
1 1 <?php
2 +/**
3 + * Field choices wrapper in the form builder.
4 + *
5 + * @package Formidable
6 + *
7 + * @var FrmFieldType $this Field type handler that included this template.
8 + * @var array $args Arguments including 'field' (with 'post_field', 'id', 'taxonomy' keys).
9 + */
10 +
2 11 if ( ! defined( 'ABSPATH' ) ) {
3 12 die( 'You are not allowed to call this page directly.' );
4 13 }
5 14
6 -if ( isset( $args['field']['post_field'] ) && $args['field']['post_field'] == 'post_category' ) {
15 +if ( isset( $args['field']['post_field'] ) && $args['field']['post_field'] === 'post_category' ) {
7 16 ?>
8 17 <div class="frm-inline-message" id="frm_has_hidden_options_<?php echo esc_attr( $args['field']['id'] ); ?>">
9 - <?php echo FrmAppHelper::kses( FrmFieldsHelper::get_term_link( $args['field']['taxonomy'] ), array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
18 + <?php FrmAppHelper::kses_echo( FrmFieldsHelper::get_term_link( $args['field']['taxonomy'] ), array( 'a' ) ); ?>
10 19 </div>
11 20 <?php
12 21 } else {
13 22 $this->show_field_options( $args );