safe-svg
safe-svg copied to clipboard
Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
### Describe the bug Some time ago I opened [this issue](https://wordpress.org/support/topic/slow-performance-of-svg_dimensions-function/) regarding the performance of this plugin (also see [this related issue](https://github.com/LF-Engineering/lfevents/issues/546)). Basically when we have a lot of SVGs...
Bump WP & PHP Minimums to the following - [ ] WordPress to 5.7 - [ ] PHP to 7.4 - [ ] Remove any no-longer-needed conditional code for older...
### Is your enhancement related to a problem? Please describe. Port in from [Pro version](https://github.com/10up/wpsvg) ### Designs _No response_ ### Describe alternatives you've considered _No response_ ### Code of Conduct...
### Is your enhancement related to a problem? Please describe. Port in from [Pro version](https://github.com/10up/wpsvg) ### Designs _No response_ ### Describe alternatives you've considered _No response_ ### Code of Conduct...
### Describe the bug The easiest way to remove thumbnail generation of a image size is to set the width and height to 0. This is an example of `wp_get_additional_image_sizes()`...
## Describe the bug When inserting SVG to the post, or using `wp_get_attachment_image()` function with custom image size ('large', 'medium', 'thumbnail', etc.) we always receive the full SVG src (which...
**Is your enhancement related to a problem? Please describe.** Attempting to add an SVG onto a page/post with the image block presents all sorts of issues. The core image block...
### Is your enhancement related to a problem? Please describe. The plugin generates thumbnail data for the current theme. A theme change or other circumstances will change the thumbnail sizes...
Hi @darylldoyle What are your thoughts on trying to assign the default height and width attributes based on the image size used in the `wp_get_attachment_image()` function? ``` echo wp_get_attachment_image( $svg_id,...
### Description of the Change Closes # ### How to test the Change ### Changelog Entry > Added - New feature > Changed - Existing functionality > Deprecated - Soon-to-be...