[wp-trac] [WordPress Trac] #22128: Adding upload mimetype in Multisite does not work if mimetype is not already defined

WordPress Trac noreply at wordpress.org
Tue Oct 30 22:01:37 UTC 2012


#22128: Adding upload mimetype in Multisite does not work if mimetype is not
already defined
-------------------------------+------------------------------
 Reporter:  BjornW             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Multisite          |     Version:  trunk
 Severity:  critical           |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by wonderboymusic):

 * keywords:  dev-feedback => reporter-feedback


Comment:

 there's a filter for 'upload_mimes'

 {{{
 function get_allowed_mime_types() {
         return apply_filters( 'upload_mimes', wp_get_mime_types() );
 }
 }}}

 Which has another filter:

 {{{
 function wp_get_mime_types() {
         // Accepted MIME types are set here as PCRE unless provided.
         return apply_filters( 'mime_types', array(
 }}}

 The documentation on this is unclear as to what the network options do

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


More information about the wp-trac mailing list