PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.2.07
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.2.07
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 +3 -5 6.26.1 → 5.2.07 View file →
@@ -6,9 +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 10 if ( isset( $message ) && $message != '' ) {
12 11 if ( FrmAppHelper::is_admin() ) {
13 12 ?>
14 13 <div id="message" class="frm_updated_message" role="status"><?php echo wp_kses_post( $message ); ?></div>
@@ -20,9 +19,10 @@
20 19 echo FrmAppHelper::maybe_kses( $message ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
21 20 }
22 21 }
23 22
24 -if ( ! empty( $errors ) && is_array( $errors ) ) {
23 +if ( isset( $errors ) && is_array( $errors ) && ! empty( $errors ) ) {
24 +
25 25 if ( isset( $form ) && is_object( $form ) ) {
26 26 FrmFormsHelper::get_scroll_js( $form->id );
27 27 }
28 28 ?>
@@ -28,12 +28,10 @@
28 28 ?>
29 29 <div class="<?php echo esc_attr( FrmFormsHelper::form_error_class() ); ?>" role="alert">
30 30 <?php
31 31 $img = '';
32 -
33 32 if ( ! FrmAppHelper::is_admin() ) {
34 33 $img = apply_filters( 'frm_error_icon', $img );
35 -
36 34 if ( $img && ! empty( $img ) ) {
37 35 echo '<img src="' . esc_url( $img ) . '" alt="" />';
38 36 }
39 37 }
@@ -42,9 +40,9 @@
42 40
43 41 ?>
44 42 </div>
45 43 <?php
46 -}//end if
44 +}
47 45
48 46 if ( isset( $include_extra_container ) ) {
49 47 ?>
50 48 </div>