[wp-trac] [WordPress Trac] #13500: Add support for CSV and XML mime types in functions.php

WordPress Trac wp-trac at lists.automattic.com
Sat May 22 17:48:24 UTC 2010


#13500: Add support for CSV and XML mime types in functions.php
-------------------------+--------------------------------------------------
 Reporter:  fazalmajid   |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  General      |     Version:            
 Severity:  minor        |    Keywords:            
-------------------------+--------------------------------------------------
 As with #12849, please add CSV and XML types to wp_ext2type() or
 get_allowed_mime_types() in functions.php.

 The patch I use on my local install of Wordpress is:

 {{{
 --- wp-includes/functions.php~  Wed Dec 23 19:38:49 2009
 +++ wp-includes/functions.php   Wed Dec 30 16:09:13 2009
 @@ -2324,6 +2324,10 @@
                 'odc' => 'application/vnd.oasis.opendocument.chart',
                 'odb' => 'application/vnd.oasis.opendocument.database',
                 'odf' => 'application/vnd.oasis.opendocument.formula',
 +               'py' => 'application/python',
 +               'xml' => 'text/xml',
 +               'csv' => 'text/csv',
                 ) );
         }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13500>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list