From 7698bd1c36994dd15f67657ee9b20d667f89a0fd Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Tue, 6 Feb 2024 01:49:56 +0200 Subject: [PATCH] - reviewed #1449; --- includes/admin/core/class-admin-settings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index 275a2358..6e130073 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -3542,8 +3542,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { return $settings; } + $wp_default_protocols = wp_allowed_protocols(); + $protocols = array_merge( $wp_default_protocols, array( 'data' ) ); + $template = $settings['um_email_template']; - $content = wp_kses( stripslashes( $settings[ $template ] ), 'post', array( 'data' ) ); + $content = wp_kses( stripslashes( $settings[ $template ] ), 'post', $protocols ); $theme_template_path = UM()->mail()->get_template_file( 'theme', $template ); if ( ! file_exists( $theme_template_path ) ) {