From f2318426bea52428993208c9917a59a69ff7ec4f Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 5 Jan 2025 18:33:42 -0600 Subject: [PATCH] Escaping in templating --- src/my-calendar-templating.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/my-calendar-templating.php b/src/my-calendar-templating.php index 371a13fe..2ca59a6c 100644 --- a/src/my-calendar-templating.php +++ b/src/my-calendar-templating.php @@ -226,7 +226,7 @@ function mc_templates_edit() { return; } if ( 'true' === mc_get_option( 'disable_legacy_templates' ) ) { - echo mc_php_templates_docs(); + echo wp_kses( mc_php_templates_docs(), mc_kses_elements() ); return; } $templates = mc_get_option( 'templates', array() ); @@ -264,7 +264,7 @@ function mc_templates_edit() { $core" ) : ''; ?>
- +

@@ -427,7 +427,7 @@ function mc_templates_edit() {