So a few weeks ago I used this code below to upload SVG files to my website:
function cc_mime_types($mimes) {
$mimes[‘svg’] = ‘image/svg+xml’;
return $mimes;
}
add_filter(‘upload_mimes’, ‘cc_mime_types’);
I then proceeded to add it to two other websites, all of which run on GeneratePress and the same server.
The weird thing…I can now upload SVGs across my entire server of websites..
So I kept digging…
I went to some client’s websites that weren’t on my server but still used GeneratePress. And, sure enough. I can upload SVGs everywhere.
I began digging more and did some plugin conflict test and things. And it seem that when GP Premium is enabled, I can upload SVGs freely…
I noticed this post here:
https://generatepress.com/forums/topic/svg-logo-2/
Has there been any recent development on this?
I thought I was going crazy and that the code I originally used somehow seeped into my server or was sharing a theme file somehow since I used the same Theme (GP) across all my websites.
Is this something new or is it a problem with GP clashing with another constant I use, say a plugin or something I’m always using in conjunction with GP?
Thanks