Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #733342

    i deleted one of my test installations – I mistakenly believe that with Enfold or one of the plugins something was wrong, but it was WordPress 4.7.1
    The “bug” is in WordPress 4.7.1 and the functions.php snippet f.e. does not work anymore.

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

    they changed the mime-check in 4.71 (wp-includes/functions.php)

    Till next WP update this could help in wp-config.php:

    define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

    • This topic was modified 7 years, 10 months ago by Yigit.
    #734255

    Hey Guenter,

    Thank you for sharing! We will pass it to our devs :)

    Best regards,
    Yigit

    #752432

    Here is a Screencast:

    #752434
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘just an info to svg and WP 4.71’ is closed to new replies.