Fixing Problems with JS option

This commit is contained in:
Holger Könemann 2015-08-17 21:39:36 +02:00
parent 9e72f73351
commit 4ab69a574b
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ function understrap_theme_customize_register( $wp_customize ) {
$wp_customize->add_setting( 'understrap_theme_script_code_setting', array( $wp_customize->add_setting( 'understrap_theme_script_code_setting', array(
'default' => '', 'default' => '',
'sanitize_callback' => 'esc_textarea' 'sanitize_js_callback' => 'esc_js'
) ); ) );
$wp_customize->add_control( 'understrap_theme_script_code', array( $wp_customize->add_control( 'understrap_theme_script_code', array(