[wp-trac] [WordPress Trac] #25176: Add 'image' type/extensions to wp_ext2type() and make it case insensitive

WordPress Trac noreply at wordpress.org
Thu Aug 29 11:24:03 UTC 2013


#25176: Add 'image' type/extensions to wp_ext2type() and make it case insensitive
-------------------------+-----------------------------
 Reporter:  xparham      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 Well, I know that you can add any type check to wp_ext2type() with
 ext2type filter, but why it does not support image type by default?

 On the other note, I think this function should be case insensitive when
 it searches for the extension in type arrays.

 Please find a patch attached.

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


More information about the wp-trac mailing list