Skip to content

Commit

Permalink
add missing sanitizations to blogname and tagline
Browse files Browse the repository at this point in the history
  • Loading branch information
francgrasso committed Aug 5, 2020
1 parent 66980ed commit bd918dd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions inc/customizer/panels/site-identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
$wp_customize->add_setting(
'blogname',
array(
'default' => get_option( 'blogname' ),
'type' => 'option',
'capability' => 'manage_options',
'priority' => 10,
'default' => get_option( 'blogname' ),
'type' => 'option',
'capability' => 'manage_options',
'priority' => 10,
'sanitize_callback' => 'wp_filter_nohtml_kses',
)
);

Expand Down Expand Up @@ -90,10 +91,11 @@
$wp_customize->add_setting(
'blogdescription',
array(
'default' => get_option( 'blogdescription' ),
'type' => 'option',
'capability' => 'manage_options',
'priority' => 100,
'default' => get_option( 'blogdescription' ),
'type' => 'option',
'capability' => 'manage_options',
'priority' => 100,
'sanitize_callback' => 'wp_filter_nohtml_kses',
)
);

Expand Down

0 comments on commit bd918dd

Please sign in to comment.