| @@ -11,10 +11,10 @@ | ||
| 11 | 11 | $info['url'] = $xml; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : ''; |
| 15 | - $url = $info['url'] ?? ''; | |
| 16 | - $value = $importing === 'form' ? $info['form'] : $info['key']; | |
| 15 | + $url = isset( $info['url'] ) ? $info['url'] : ''; | |
| 16 | + $value = $importing === 'form' ? $info['form'] : $info['key']; | |
| 17 | 17 | if ( ! isset( $info['img'] ) ) { |
| 18 | 18 | ?> |
| 19 | 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 ); ?>/> |
| 20 | 20 | <?php |
| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | onchange="frm_show_div('show_sub_opt',this.checked,false,'.');frm_show_div('show_<?php echo esc_attr( $info['form'] ); ?>',this.checked,true,'.')" |
| 41 | 41 | <?php } ?> |
| 42 | 42 | /> |
| 43 | 43 | <div class="frm_image_option_container frm_label_with_image"> |
| 44 | - <?php FrmAppHelper::kses_echo( $info['img'], array( 'svg', 'rect', 'path' ) ); ?> | |
| 44 | + <?php echo FrmAppHelper::kses( $info['img'], array( 'svg', 'rect', 'path' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 45 | 45 | <span class="frm_text_label_for_image"> |
| 46 | 46 | <?php |
| 47 | 47 | if ( ! empty( $disabled ) ) { |
| 48 | 48 | FrmAppHelper::icon_by_class( |
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | if ( $importing === 'form' && $disabled ) { |
| 57 | - FrmAppHelper::kses_echo( FrmFormsHelper::edit_form_link( $imported[ $info['form'] ] ), array( 'a' ) ); | |
| 57 | + echo FrmAppHelper::kses( FrmFormsHelper::edit_form_link( $imported[ $info['form'] ] ), array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 58 | 58 | } else { |
| 59 | 59 | echo esc_html( $info['name'] ); |
| 60 | 60 | } |
| 61 | 61 | ?> |
| @@ -62,9 +62,7 @@ | ||
| 62 | 62 | </span> |
| 63 | 63 | </div> |
| 64 | 64 | </label> |
| 65 | 65 | </div> |
| 66 | - <?php | |
| 67 | - }//end foreach | |
| 68 | - ?> | |
| 66 | + <?php } ?> | |
| 69 | 67 | </div> |
| 70 | 68 | </div> |