From 64036ba0aed18acc32cb897d26f60e9ebfdfc4cb Mon Sep 17 00:00:00 2001 From: savvasha Date: Tue, 28 Mar 2023 11:02:03 +0300 Subject: [PATCH] FIX: https://wordpress.org/support/topic/using-links-in-event-spec/ Sanitize but keep the html. --- includes/sp-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index e7fa7f75..0d059264 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -358,7 +358,7 @@ if ( ! function_exists( 'sp_array_value' ) ) { $value = sp_array_map_recursive( 'sanitize_title', $value ); break; case 'text': - $value = sp_array_map_recursive( 'sanitize_text_field', $value ); + $value = sp_array_map_recursive( 'wp_kses_post', $value ); break; case 'key': $value = sp_array_map_recursive( 'sanitize_key', $value );