• Resolved overjob

    (@overjob)


    Cannot download SVG files with WordPress 6.6.2 / works with 6.0.9 version

    I have no SVG plugins installed. A blank page opens systematically (‘about:blank#blocked’)
    No errors in logs

    functions.php

    add_action('after_setup_theme', function () {
    add_theme_support('title-tag');
    add_theme_support('menus');
    add_theme_support('html5', array('comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script'));
    add_theme_support('post-thumbnails');
    });

    add_filter('upload_mimes', function ($mimes) {
    $mimes['svg'] = 'image/svg+xml';
    return $mimes;
    });


    Svg File

    <?xml version="1.0" encoding="utf-8"?>
    <svg>…</svg>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.