[wp-trac] Re: [WordPress Trac] #4615: Allow more open document formats

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 15 08:37:48 GMT 2007

#4615: Allow more open document formats
 Reporter:  nbachiyski      |        Owner:  anonymous  
     Type:  defect          |       Status:  new        
 Priority:  normal          |    Milestone:  2.3 (trunk)
Component:  Administration  |      Version:             
 Severity:  normal          |   Resolution:             
 Keywords:                  |  
Comment (by westi):

 Replying to [comment:6 Otto42]:
 > I suggest moving wp_check_filetype() into pluggable.php entirely and
 wrapping it with an if ( !function_exists('wp_check_filetype') ) test
 > Why? Well..
 > While adding new filetypes can be done through a filter, it's somewhat
 annoying to have to have a plugin or hack the core or mess with your theme
 just to modify your allowed filetypes.

 I don't think this is something to move to pluggable.php.  It is quite
 feasible that multiple plugins may want to extend the list of available
 mime types when extending WordPress and using pluggable.php means that the
 first one wins.

 Adding new filetypes is easy - you only need to install a plugin that
 provides a UI for you to do this and you are done -

Ticket URL: <http://trac.wordpress.org/ticket/4615#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list