LW Enable
Enable WordPress features: SVG uploads and more
★ 0stars
22release downloads
131composer installs
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/lwplugins/lw-enable/releases/download/v1.0.14/lw-enable-1.0.14.zipAlso on Packagist as lwplugins/lw-enable:
composer require lwplugins/lw-enableFrom the readme
Lightweight Enable
Enable WordPress features: SVG uploads and more.
Features
Media
- SVG Uploads - Allow SVG file uploads with comprehensive security sanitization
- MIME type registration
- Script/XSS detection and blocking
- XXE (XML External Entity) protection
- Event handler detection
- Obfuscation detection (Unicode/hex escapes, entity encoding)
- Automatic SVG dimension extraction (width/height and viewBox)
- 5MB file size limit
- Post-upload re-validation
Installation
Or download and upload to /wp-content/plugins/.
Usage
Admin UI
1. Go to LW Plugins → Enable
2. Check the features you want to enable
3. Save
WP-CLI
Available features:
| Feature | Description |
|---------|-------------|
| svg | SVG file uploads with security sanitization |
Security
SVG files can contain malicious code. This plugin performs comprehensive sanitization before allowing uploads:
- 34 dangerous patterns detected (scripts, event handlers, external entities, data URIs, etc.)
- Entity decoding to catch obfuscated payloads
- XML validation via DOMDocument
- Post-upload verification - files are re-checked after WordPress processes them
- Automatic cleanup - invalid files are
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.0.14 | Sep 6, 2026 | lw-enable-1.0.14.zip | 3 |
| v1.0.13 | Aug 20, 2026 | lw-enable-1.0.13.zip | 2 |
| v1.0.12 | Jul 18, 2026 | lw-enable-1.0.12.zip | 1 |
| v1.0.11 | Mar 22, 2026 | lw-enable-1.0.11.zip | 6 |
| v1.0.10 | Mar 22, 2026 | lw-enable-1.0.10.zip | 0 |
| v1.0.9 | Mar 17, 2026 | lw-enable-1.0.9.zip | 0 |
| v1.0.8 | Feb 12, 2026 | lw-enable-1.0.8.zip | 2 |
| v1.0.7 | Feb 12, 2026 | lw-enable-1.0.7.zip | 0 |
| v1.0.6 | Feb 9, 2026 | lw-enable-1.0.6.zip | 0 |
| v1.0.5 | Feb 9, 2026 | lw-enable-1.0.5.zip | 1 |
| v1.0.4 | Feb 8, 2026 | lw-enable-1.0.4.zip | 1 |
| v1.0.3 | Feb 7, 2026 | lw-enable-1.0.3.zip | 1 |
| v1.0.2 | Feb 7, 2026 | lw-enable-1.0.2.zip | 1 |
| v1.0.1 | Feb 6, 2026 | lw-enable-1.0.1.zip | 1 |
| v1.0.0 | Feb 6, 2026 | lw-enable-1.0.0.zip | 3 |