[wp-trac] [WordPress Trac] #12518: XML-RPC newMediaObject should try to work out mime-type if not supplied

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 7 09:18:00 UTC 2010


#12518: XML-RPC newMediaObject should try to work out mime-type if not supplied
--------------------------+-------------------------------------------------
 Reporter:  jonquark      |       Owner:  josephscott   
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  XML-RPC       |     Version:                
 Severity:  normal        |    Keywords:  has-patch     
--------------------------+-------------------------------------------------

Comment(by jonquark):

 Hi Joseph,

 When I came to address your comment, I realised that there is a
 wp_check_filetype() that works with a broader range of mime types.

 I've attached a version of the patch that uses it (and also stops passing
 type to wp_upload_bits as that is deprecated in favour of a call to
 wp_check_filetype()).

 Does that seem reasonable?

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


More information about the wp-trac mailing list