Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/heliogoodbye/stfq-svg-upload/releases/download/1.0/stfq-svg-upload.zipSTFQ SVG Upload extends the functionality of the WordPress media library by enabling users to upload SVG (Scalable Vector Graphics) files securely. With SVG becoming increasingly popular for web graphics due to its scalability and flexibility, this plugin ensures that WordPress users can incorporate SVG images into their websites without compromising security.
Key Features:
-
SVG Upload Support: Allows users to upload SVG files directly to the WordPress media library, just like other supported image formats.
-
Sanitization: Implements a custom sanitization process to ensure that uploaded SVG files are safe for use on the website. The sanitization logic removes potentially harmful elements and attributes from the SVG content, mitigating security risks associated with SVG files.
-
Event Handler Removal: Eliminates event handler attributes (e.g.,
onload,onclick) from SVG elements to prevent any unintended execution of scripts embedded within SVG files. -
Script Tag Removal: Removes all `
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.