[wp-trac] [WordPress Trac] #63778: Allow admins/editors to upload SVGs
WordPress Trac
noreply at wordpress.org
Thu Sep 4 18:06:16 UTC 2025
#63778: Allow admins/editors to upload SVGs
-------------------------+------------------------------
Reporter: iandunn | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version:
Severity: normal | Resolution:
Keywords: | Focuses: administration
-------------------------+------------------------------
Comment (by iandunn):
@otto42 reminded me that [https://developer.mozilla.org/en-
US/docs/Web/SVG/Guides/SVG_as_an_image SVG's can't execute JavaScript when
embedded using the <img> tag].
So, that avoids any problems with displaying SVGs in the Media Library.
We'd just want to add a comment in the code that it should never be
changed to a different method (e.g., `<svg>`), to avoid a regression.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63778#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list