From 968278f2407a806529a94876866c6cfc9dac3f70 Mon Sep 17 00:00:00 2001 From: koenemann Date: Mon, 21 Nov 2016 10:40:41 +0100 Subject: [PATCH] adding sanitize_callback --- inc/customizer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/customizer.php b/inc/customizer.php index e6507da..28cbbe6 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -78,6 +78,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) { $wp_customize->add_setting( 'understrap_container_type', array( 'default' => 'container', 'type' => 'theme_mod', + 'sanitize_callback' => 'esc_textarea', 'capability' => 'edit_theme_options' ) ); @@ -101,6 +102,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) { $wp_customize->add_setting( 'understrap_sidebar_position', array( 'default' => 'right', 'type' => 'theme_mod', + 'sanitize_callback' => 'esc_textarea', 'capability' => 'edit_theme_options', ) ); @@ -127,6 +129,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) { $wp_customize->add_setting( 'understrap_posts_index_style', array( 'default' => 'default', 'type' => 'theme_mod', + 'sanitize_callback' => 'esc_textarea', 'capability' => 'edit_theme_options', ) );