From 4ab69a574b23020e40f9a2aef04f2b9a05bea556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Ko=CC=88nemann?= Date: Mon, 17 Aug 2015 21:39:36 +0200 Subject: [PATCH] Fixing Problems with JS option --- inc/customizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/customizer.php b/inc/customizer.php index 951ecef..bf6d9b6 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -70,7 +70,7 @@ function understrap_theme_customize_register( $wp_customize ) { $wp_customize->add_setting( 'understrap_theme_script_code_setting', array( 'default' => '', - 'sanitize_callback' => 'esc_textarea' + 'sanitize_js_callback' => 'esc_js' ) ); $wp_customize->add_control( 'understrap_theme_script_code', array(