[wp-trac] [WordPress Trac] #64545: Style Engine: Harden add_declaration against being passed illegal values
WordPress Trac
noreply at wordpress.org
Fri Jan 23 08:23:41 UTC 2026
#64545: Style Engine: Harden add_declaration against being passed illegal values
-------------------------------------------------+-------------------------
Reporter: andrewserong | Owner:
| isabel_brison
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.9.1
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: gutenberg-merge has-patch has-unit- | Focuses:
tests dev-feedback |
-------------------------------------------------+-------------------------
Comment (by wildworks):
> it can cause fatal errors on the front end when block attributes are
malformed.
If I understand correctly, this bug has been there since 6.1 when the
`WP_Style_Engine_CSS_Declarations` class was introduced, right?
https://github.com/WordPress/wordpress-develop/blob/6.1/src/wp-includes
/style-engine/class-wp-style-engine-css-declarations.php#L58-L67
I don't have a strong opinion, but personally I don't think it's necessary
to backport it to a minor release right now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64545#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list