From a02b12212c6429c05adf99931d16625393fa5dad Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sun, 1 Aug 2021 16:27:28 -0400 Subject: [PATCH] Fixed html santization --- functions/customizer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/customizer.php b/functions/customizer.php index 96059f7..3fc1ed0 100755 --- a/functions/customizer.php +++ b/functions/customizer.php @@ -479,9 +479,10 @@ $wp_customize->add_panel( 'portage', array( ) ); $wp_customize->add_setting( 'portage_copyright', array( - 'type' => 'theme_mod', - 'transport' => 'postMessage', - 'sanitize_callback' => 'html', + 'type' => 'theme_mod', + 'transport' => 'postMessage', + 'default' => $default_copyright, + 'sanitize_callback' => 'wp_kses_post', ) ); $default_copyright = 'Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.';