[wp-trac] [WordPress Trac] #40017: wp_get_image_mime() returns 'application/octet-stream' for non-image files.

WordPress Trac noreply at wordpress.org
Fri Mar 17 15:28:51 UTC 2017


#40017: wp_get_image_mime() returns 'application/octet-stream' for non-image files.
----------------------------------------+--------------------
 Reporter:  blobfolio                   |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.7.4
Component:  Media                       |     Version:  4.7.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+--------------------

Comment (by blobfolio):

 Simple unit test, one image, one non-image. Both sources were already
 present in the test data.

 {{{
 $ phpunit tests/phpunit/tests/functions/wpGetImageMime.php
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ajax tests. To execute these, use --group ajax.
 Not running ms-files tests. To execute these, use --group ms-files.
 Not running external-http tests. To execute these, use --group external-
 http.
 PHPUnit 5.4.6 by Sebastian Bergmann and contributors.

 .                                                                   1 / 1
 (100%)

 Time: 728 ms, Memory: 20.00Mb

 OK (1 test, 2 assertions)
 }}}

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


More information about the wp-trac mailing list