[wp-trac] [WordPress Trac] #57780: wp_kses: Add filter to css_url_data_types
WordPress Trac
noreply at wordpress.org
Wed Feb 22 21:49:55 UTC 2023
#57780: wp_kses: Add filter to css_url_data_types
--------------------------+------------------------------
Reporter: scruffian | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by jeryj):
Is it worth adding the other properties that `url` can be used with?
> The url() function can be included as a value for background,
background-image, border, border-image, border-image-source, content,
cursor, filter, list-style, list-style-image, mask, mask-image, offset-
path, src as part of a @font-face block, and @counter-style/symbol
I'm not sure what the performance overhead would be to add more to the
array here if they're going to be mostly unused. If any of them are needed
they can certainly be added in follow-up PRs as needed. I'm mostly curious
to learn more about context here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57780#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list