[wp-trac] [WordPress Trac] #20136: ms-files.php sets *.webm mimetype incorrectly

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 1 07:41:36 UTC 2012


#20136: ms-files.php sets *.webm mimetype incorrectly
-------------------------------------+------------------------------
 Reporter:  braydonf                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Multisite                |     Version:
 Severity:  major                    |  Resolution:
 Keywords:  reporter-feedback close  |
-------------------------------------+------------------------------

Comment (by braydonf):

 In one of the themes I have done so yes, using this in functions.php

     add_filter( 'upload_mimes', 'custom_mimes' );

     function custom_mimes( $mimes ){
         $mimes['webm'] = 'video/webm';

         return $mimes;
     }

 However in the rewrite to wp-includes/ms-files.php, the filter isn't being
 run since it is "outside" of a site.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20136#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list