| @@ -6,10 +6,8 @@ | ||
| 6 | 6 | if ( isset( $include_extra_container ) ) { ?> |
| 7 | 7 | <div class="<?php echo esc_attr( $include_extra_container ); ?>" id="frm_form_<?php echo esc_attr( $form->id ); ?>_container"> |
| 8 | 8 | <?php |
| 9 | 9 | } |
| 10 | - | |
| 11 | -// phpcs:ignore Universal.Operators.StrictComparisons | |
| 12 | 10 | if ( isset( $message ) && $message != '' ) { |
| 13 | 11 | if ( FrmAppHelper::is_admin() ) { |
| 14 | 12 | ?> |
| 15 | 13 | <div id="message" class="frm_updated_message" role="status"><?php echo wp_kses_post( $message ); ?></div> |
| @@ -16,9 +14,9 @@ | ||
| 16 | 14 | <?php |
| 17 | 15 | } else { |
| 18 | 16 | FrmFormsHelper::maybe_get_scroll_js( $form->id ); |
| 19 | 17 | |
| 20 | - // We need to allow scripts here for javascript in the success message | |
| 18 | + // we need to allow scripts here for javascript in the success message | |
| 21 | 19 | echo FrmAppHelper::maybe_kses( $message ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 22 | 20 | } |
| 23 | 21 | } |
| 24 | 22 | |
| @@ -29,13 +27,11 @@ | ||
| 29 | 27 | ?> |
| 30 | 28 | <div class="<?php echo esc_attr( FrmFormsHelper::form_error_class() ); ?>" role="alert"> |
| 31 | 29 | <?php |
| 32 | 30 | $img = ''; |
| 33 | - | |
| 34 | 31 | if ( ! FrmAppHelper::is_admin() ) { |
| 35 | 32 | $img = apply_filters( 'frm_error_icon', $img ); |
| 36 | - | |
| 37 | - if ( $img ) { | |
| 33 | + if ( $img && ! empty( $img ) ) { | |
| 38 | 34 | echo '<img src="' . esc_url( $img ) . '" alt="" />'; |
| 39 | 35 | } |
| 40 | 36 | } |
| 41 | 37 | |