diff --git a/inc/admin/customizer.php b/inc/admin/customizer.php index 2128dac..44f32c6 100644 --- a/inc/admin/customizer.php +++ b/inc/admin/customizer.php @@ -285,7 +285,7 @@ function stormbringer_customize_register( $wp_customize ) { $wp_customize->add_setting('bootstrap_preprocessor', [ 'default' => 'scss', 'transport' => 'postMessage', - 'sanitize_callback' => 'absint' + 'sanitize_callback' => 'sanitize_text_field' ] ); $wp_customize->add_control('bootstrap_preprocessor', array( diff --git a/inc/front/styles.php b/inc/front/styles.php index fda79b0..218d10a 100644 --- a/inc/front/styles.php +++ b/inc/front/styles.php @@ -3,7 +3,7 @@ function stormbringer_preprocessor() { - $preprocessor = get_theme_mod('bootstrap_preprocessor', true); + $preprocessor = get_theme_mod('bootstrap_preprocessor', 'scss'); $cssfile = 'css/styles.css';