[wp-trac] [WordPress Trac] #53121: wp_get_image_mime() - something weird going on
WordPress Trac
noreply at wordpress.org
Fri Apr 30 21:49:10 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 jrf):
@joemcgill Thanks for getting back to me about that. Basically, I could
only get the test to fail when Exif was disabled. Disabling GD didn't seem
to have any effect at all.
We may need to dig deeper into the PHP side of things there, but based on
those tests I ran, it would appear that `getimagesize()` is always
available, independently of GD.
If that's the case, we could most likely simplify the
`wp_get_image_mime()` function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53121#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list