Title: Plugin breaks inline svg
Last modified: November 23, 2022

---

# Plugin breaks inline svg

 *  [torsteino](https://wordpress.org/support/users/torsteino/)
 * (@torsteino)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/plugin-breaks-inline-svg/)
 * Hi,
    I have some issues with your plugin. I have made a custom theme for a client
   where we use currentcolor to colorize some elements of a svg that is loaded inline.
 * After one of your latest updates (somewhere between 2.5.1 where it worked and
   2.5.4 where it is not working) this stopped working.
 * After some testing, it seems that you do some kind of change that makes wp_check_filetype()
   fail (which I use to check if its a svg or some other kind of image), plus the
   sanitize-options I mentioned above has been activated by default, and this change
   remains there even after deleting the plugin.
 * I have tried disabling the “sanitize svg” settings that you seem to have activated
   by default, including the “Sanitize SVG on Front-end” under “advanced”), and 
   even tried deactivating and deleting the plugin (with the “delete plugin data
   on uninstall” checked), but wp_check_filetype() still fails, and this happens
   exactly after updating your plugin (I have tested and rolled back to earlier 
   backups multiple times).
 * Using the “force all svg to inline” option works, but as this is in the hero 
   image (and other places) it makes a very noticeable delay before the colors are
   shown correctly.
 * I really need a solution here asap.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-breaks-inline-svg%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Plugin breaks inline svg’ is closed to new replies.

 * ![](https://ps.w.org/svg-support/assets/icon.svg?rev=3554681)
 * [SVG Support](https://wordpress.org/plugins/svg-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svg-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svg-support/)
 * [Active Topics](https://wordpress.org/support/plugin/svg-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svg-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svg-support/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [torsteino](https://wordpress.org/support/users/torsteino/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/plugin-breaks-inline-svg/)
 * Status: not resolved