Skip to content

Commit

Permalink
Correct sanitize of preprocessor mod
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomollet committed Jul 17, 2018
1 parent a892115 commit ed74e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/admin/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion inc/front/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit ed74e6c

Please sign in to comment.