adding sanitize_callback

This commit is contained in:
koenemann 2016-11-21 10:40:41 +01:00
parent 1c4fe9b1f7
commit 968278f240
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
$wp_customize->add_setting( 'understrap_container_type', array( $wp_customize->add_setting( 'understrap_container_type', array(
'default' => 'container', 'default' => 'container',
'type' => 'theme_mod', 'type' => 'theme_mod',
'sanitize_callback' => 'esc_textarea',
'capability' => 'edit_theme_options' 'capability' => 'edit_theme_options'
) ); ) );
@ -101,6 +102,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
$wp_customize->add_setting( 'understrap_sidebar_position', array( $wp_customize->add_setting( 'understrap_sidebar_position', array(
'default' => 'right', 'default' => 'right',
'type' => 'theme_mod', 'type' => 'theme_mod',
'sanitize_callback' => 'esc_textarea',
'capability' => 'edit_theme_options', 'capability' => 'edit_theme_options',
) ); ) );
@ -127,6 +129,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
$wp_customize->add_setting( 'understrap_posts_index_style', array( $wp_customize->add_setting( 'understrap_posts_index_style', array(
'default' => 'default', 'default' => 'default',
'type' => 'theme_mod', 'type' => 'theme_mod',
'sanitize_callback' => 'esc_textarea',
'capability' => 'edit_theme_options', 'capability' => 'edit_theme_options',
) ); ) );