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

WordPress Trac noreply at wordpress.org
Fri Apr 30 21:03:11 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):

 I don't think we ever fully tested the conditions where this would be
 skipped, to be honest, since it's so rare that these conditions would
 ''not'' be met. However, I would expect it to only skip when both Exif is
 disabled AND GD was not available. So if I'm understanding correctly and
 it's skipping when Exif is disabled and GD is enabled, but not when both
 are disabled, then something is definitely wrong here. The other thing I
 notice while looking at this check is that the Mark test skipped message
 is not really accurate, since it is not only testing for whether Exif is
 enabled, but is intended to check for the existence of either of the
 underlying dependencies.

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

More information about the wp-trac mailing list