[wp-trac] [WordPress Trac] #64418: Valid CSS is causing failure in the Additional CSS panel
WordPress Trac
noreply at wordpress.org
Tue Dec 30 13:01:28 UTC 2025
#64418: Valid CSS is causing failure in the Additional CSS panel
-------------------------------------------------+-------------------------
Reporter: drw158 | Owner: jonsurrell
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 7.0
Component: Customize | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses: css
feedback |
-------------------------------------------------+-------------------------
Comment (by jonsurrell):
In [changeset:"61418" 61418]:
{{{
#!CommitTicketReference repository="" revision="61418"
Use the HTML API to generate style tags.
The HTML API escapes `<style>` tag contents to ensure the correct HTML
structure. Common HTML escaping is unsuitable for `<style>` tags because
they contain "raw text." The additional safety allows other restrictions,
such as rejecting content with `<>`, to be relaxed or removed because the
resulting tag will be well-formed.
Developed in https://github.com/WordPress/wordpress-develop/pull/10656.
Props jonsurrell, westonruter, dmsnell, ramonopoly, soyebsalar01, drw158,
sabernhardt.
See #64418.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64418#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list