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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 15 15:03:01 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 Otto42):

 Replying to [comment:7 westi]:
 > 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 -

 Adding new filetypes is indeed easy, but changing the way that it detects
 filetypes in the first place is not. What if I don't want to use the
 extension only? What if I want to use the "magic" methods to detect the
 type of file? This should be pluggable so that plugins can change the
 entire method, not just add new filetypes.

 Leave the filter in there as it is, and then plugins can continue to add
 mime types that way, but if a plugin wants to change the whole thing, then
 it will be able to do so if the function is pluggable.

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

More information about the wp-trac mailing list