| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | |
| 6 | 6 | if ( isset( $message ) && '' !== $message ) { |
| 7 | 7 | if ( FrmAppHelper::is_admin() ) { |
| 8 | 8 | echo '<div class="frm_updated_message">'; |
| 9 | - FrmAppHelper::kses_echo( $message, 'all' ); | |
| 9 | + echo FrmAppHelper::kses( $message, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 10 | 10 | echo '</div>'; |
| 11 | 11 | } else { |
| 12 | 12 | echo FrmAppHelper::maybe_kses( $message ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 13 | 13 | } |
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | } |
| 19 | 19 | $show_messages = apply_filters( 'frm_message_list', $show_messages ); |
| 20 | 20 | if ( is_array( $show_messages ) && count( $show_messages ) > 0 ) { |
| 21 | 21 | // Define a callback function to add 'data-action' attribute to allowed HTML tags |
| 22 | - $add_data_action_callback = function ( $allowed_html ) { | |
| 22 | + $add_data_action_callback = function( $allowed_html ) { | |
| 23 | 23 | $allowed_html['span']['data-action'] = true; |
| 24 | 24 | return $allowed_html; |
| 25 | 25 | }; |
| 26 | 26 | ?> |