[wp-trac] [WordPress Trac] #43741: Improve media_sideload_image() image extensions detection
WordPress Trac
noreply at wordpress.org
Sun Apr 15 16:48:11 UTC 2018
#43741: Improve media_sideload_image() image extensions detection
-------------------------+------------------------------
Reporter: Karzin | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.9.5
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by soulseekah):
Hey, welcome to Trac! :)
`image_type_to_extension` and `exif_imagetype` require extra PHP libraries
to be available (GD and Exif extensions respectively).
There's core's `wp_get_image_mime` which may be useful instead? It uses
the same functions mostly, but provides graceful fallback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43741#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list