WP_Theme_JSON sanitization is not working below certain level of theme.json #52798
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
What?
The class WP_Theme_JSON is not sanitizing below the
settings.typography.fontFamilies
level of thetheme
data.Example and testing code:
Result:
As a result of the snippet,
$data
is this:As you can see,
badKey4
andbadKey5
are not removed by the sanitization process.It seems like the sanitization is not working below the
settings.typography.fontFamilies
level of thetheme
data.How should it work?
The sanitization should also work below the
settings.typography.fontFamilies
level of thetheme
data.The text was updated successfully, but these errors were encountered: