PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.23
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.23
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-entries/errors.php +2 -6 6.286.23 View file →
@@ -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