soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 29 forks source link

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

Open damienlee77 opened 4 months ago

damienlee77 commented 4 months ago

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.