[wp-trac] [WordPress Trac] #40057: Double hashed value for background-color of body.background-color
WordPress Trac
noreply at wordpress.org
Fri Jan 3 09:01:02 UTC 2025
#40057: Double hashed value for background-color of body.background-color
---------------------------------+------------------------------
Reporter: hovhanneshovakimyan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------------+------------------------------
Comment (by poena):
To reproduce this issue, add a hashed color code to the background color
theme mod, for example in functions.php:
{{{
set_theme_mod( 'background_color', '#cc0000' );
}}}
I tested with Twent Ten, where the resulting CSS output is
{{{
<style type="text/css" id="custom-background-css">
body.custom-background { background-color: ##cc0000; }
</style>
}}}
{{{maybe_hash_hex_color}}} is already used to sanitize the value of the
color input fields in the customizer, but in this example code the theme
mod is set directly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40057#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list