Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Sanitize hex color used in theme mods #143

Merged
merged 1 commit into from Sep 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -912,7 +912,7 @@ function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $su
function twentytwenty_get_customizer_css( $type = 'front-end' ) {

// Get variables
$accent = get_theme_mod( 'twentytwenty_accent_color' );
$accent = sanitize_hex_color( get_theme_mod( 'twentytwenty_accent_color' ) );
$accent_default = '#CD2653';

ob_start();
Expand Down