PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.21
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.21
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/solutions/_import.php +3 -5 6.306.21 View file →
@@ -11,11 +11,10 @@
11 11 $info['url'] = $xml;
12 12 }
13 13
14 14 $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : '';
15 - $url = $info['url'] ?? '';
15 + $url = isset( $info['url'] ) ? $info['url'] : '';
16 16 $value = $importing === 'form' ? $info['form'] : $info['key'];
17 -
18 17 if ( ! isset( $info['img'] ) ) {
19 18 ?>
20 19 <input type="hidden" name="<?php echo esc_attr( $importing ); ?>[<?php echo esc_attr( $info['form'] ); ?>]" value="<?php echo esc_attr( $value ); ?>" <?php echo esc_attr( $disabled ); ?>/>
21 20 <?php
@@ -31,10 +30,9 @@
31 30 <label>
32 31 <input type="radio" name="<?php echo esc_attr( $importing . ( $importing === 'view' ? '[' . $info['form'] . ']' : '' ) ); ?>" value="<?php echo esc_attr( $value ); ?>"
33 32 <?php
34 33 echo esc_attr( $disabled );
35 -
36 - if ( ! $selected && ! $disabled ) {
34 + if ( ! $selected && empty( $disabled ) ) {
37 35 echo ' checked="checked"';
38 36 $selected = $info['form'];
39 37 }
40 38 ?>
@@ -45,9 +43,9 @@
45 43 <div class="frm_image_option_container frm_label_with_image">
46 44 <?php FrmAppHelper::kses_echo( $info['img'], array( 'svg', 'rect', 'path' ) ); ?>
47 45 <span class="frm_text_label_for_image">
48 46 <?php
49 - if ( $disabled ) {
47 + if ( ! empty( $disabled ) ) {
50 48 FrmAppHelper::icon_by_class(
51 49 'frmfont frm_step_complete_icon',
52 50 array(
53 51 'aria-label' => __( 'Imported', 'formidable' ),