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/shared/errors.php +0 -3 6.266.23 View file →
@@ -15,11 +15,9 @@
15 15
16 16 if ( ! isset( $show_messages ) ) {
17 17 $show_messages = array();
18 18 }
19 -
20 19 $show_messages = apply_filters( 'frm_message_list', $show_messages );
21 -
22 20 if ( is_array( $show_messages ) && count( $show_messages ) > 0 ) {
23 21 // Define a callback function to add 'data-action' attribute to allowed HTML tags
24 22 $add_data_action_callback = function ( $allowed_html ) {
25 23 $allowed_html['span']['data-action'] = true;
@@ -30,9 +28,8 @@
30 28 <ul id="frm_messages">
31 29 <?php
32 30 // Add the callback function to the 'frm_striphtml_allowed_tags' filter
33 31 add_filter( 'frm_striphtml_allowed_tags', $add_data_action_callback );
34 -
35 32 foreach ( $show_messages as $m ) {
36 33 echo '<li>' . FrmAppHelper::kses( $m, array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ) . '</li>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
37 34 }
38 35 // Remove the callback function from the 'frm_striphtml_allowed_tags' filter