soflyy/oxygen-bugs-and-features

Inserting an image with dynamic data from ACF doesn't work with .svg files

Opened this issue · 0 comments

I have SVG images in the media library for brands and am using a brand taxonomy with an ACF field for the brand logo, which is in SVG form. However while I can manually get the ACF field URL with get_field, Oxygen is either filtering it out or sanitizing URLs with .svg

Both Wordpress and ACF support SVG file types and only Oxygen is preventing their display.

To reproduce, simply add an SVG image to a field on any custom post type or taxonomy and then try to add this field dynamically either as an image or even inserting the URL as text and it will be missing front and backend.