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 When building an archive using the NPM `archive` and `postarchive` scripts, the `node_modules` and `vendor` folders are included in the zip file. In local testing, this...
### Is your enhancement related to a problem? Please describe. Cypress 13 was recently released, and Cypress 12 contains some breaking changes as listed below. We need to update our...
### Is your enhancement related to a problem? Please describe. Hi. It would be nice to add an option that completely disables the SVG sanitizer when uploading SVG files. Many...
### Describe the bug All wp-cli commands fail with safe-svg >= v2.1.0 installed due to call to undefined function SafeSvg\Blocks\setup(). This is the full error message: ``` Fatal error: Uncaught...
### Is your enhancement related to a problem? Please describe. Optimize existing SVGs when someone triggers a batch regenerate of images, with WP-CLI or a third-party plugin. That way we...
### Description of the Change Add a `Testing` section in the `CONTRIBUTING.md` file. ### Changelog Entry > Added - "Testing" section in the "CONTRIBUTING.md" file. ### Credits Props @kmgalanakis ###...
### Describe the bug The block inline CSS gets always added to every page: ```html .safe-svg-cover{text-align:center}.safe-svg-cover .safe-svg-inside{display:inline-block;max-width:100%}.safe-svg-cover svg{height:100%;max-height:100%;max-width:100%;width:100%} ``` It seems like commit 687092a intends to fix that, but it...
### Description of the Change This PR adds a new filter, `safe_svg_current_user_can_upload`, around the returned value from our `current_user_can_upload_svg` method. This filter allows others to have more fine-tune control on...
### Describe the bug There is a small PHP warning coming from your plugin when upgrading to PHP 8.3: `Deprecated: Automatic conversion of false to array is deprecated in /wp-content/plugins/safe-svg/safe-svg.php...
### Is your enhancement related to a problem? Please describe. In #76, we added settings allowing you to choose which user roles can upload svgs. When a role is selected,...