⚡ Target:
functions.php
🔒 Tested: WP 6.6+ / PHP 8.2+
💻 Lang: PHP
By default, WordPress blocks SVG uploads due to potential XML vulnerability risks. This lightweight function safely whitelists SVG MIME types for administrators.