[wp-trac] [WordPress Trac] #53121: wp_get_image_mime() - something weird going on

WordPress Trac noreply at wordpress.org
Sat May 1 01:04:35 UTC 2021


#53121: wp_get_image_mime() - something weird going on
--------------------------+------------------------------
 Reporter:  jrf           |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.8
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by joemcgill):

 > @joemcgill Not sure what you mean... getimagesizes() doesn't exist

 Sorry about that, I meant `getimagesize()`, the s was a typo. So now I'm
 confused. If `getimagesize()` always works, then how is this test ever
 being skipped? Wouldn't the second condition of that if statement, `!
 function_exists( 'getimagesize' )` always be falsey and cause the test to
 run?

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


More information about the wp-trac mailing list