[wp-trac] [WordPress Trac] #34190: Function Reference/wp check filetype

WordPress Trac noreply at wordpress.org
Wed Oct 7 18:15:54 UTC 2015


#34190: Function Reference/wp check filetype
--------------------------+----------------------
 Reporter:  lpkapil       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  4.3.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by ocean90):

 * status:  reopened => closed
 * resolution:   => invalid
 * component:  Administration => General
 * severity:  critical => normal


Comment:

 Replying to [comment:5 lpkapil]:

 If you don't provide the `$mimes` argument the function uses
 `get_allowed_mime_types()` and `wp_get_mime_types()`. The later doesn't
 include PHP, that's why `wp_check_filetype()` returns false.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34190#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list