[wp-trac] [WordPress Trac] #50557: The file extension .heic is defined as an image into `wp_get_mime_types()` but not in `wp_get_ext_types()`

WordPress Trac noreply at wordpress.org
Sat Jul 4 10:02:46 UTC 2020


#50557: The file extension .heic is defined as an image into `wp_get_mime_types()`
but not in `wp_get_ext_types()`
--------------------------+-----------------------------
 Reporter:  imath         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 Hi,

 I just noticed a failing test in the BuddyPress PHPunit tests since
 [48288]. Our test is failing because `'image' !== wp_ext2type( 'heic' )`.
 I was wondering if the fact the `.heic` extension was not into the
 returned array of the [https://core.trac.wordpress.org/browser/trunk/src
 /wp-includes/functions.php#L3169 wp_get_ext_types()] function was
 intentional or not.

 If not I'm suggesting the attached patch. If so I'll fix the BuddyPress
 unit tests ignoring the .heic extension.

 Thanks in advance for your time.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50557>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list