Make WordPress Core

Opened 10 months ago

Last modified 10 months ago

#41801 new enhancement

add wp_get_image_extensions() and wp_image_extensions filter

Reported by: pbiron Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Media Keywords: has-patch
Focuses: Cc:


Core already has wp_get_audio_extensions() and wp_get_video_extensions() (which are used in wp_attachment_is()).

For consistency and convenience, core should also have wp_get_image_extensions() and wp_image_extensions filter.

Attachments (1)

41801.diff (2.0 KB) - added by pbiron 10 months ago.

Download all attachments as: .zip

Change History (2)

10 months ago

#1 @pbiron
10 months ago

  • Keywords has-patch added

In addition to adding wp_get_image_extensions() and wp_image_extensions filter, the patch also modifies wp_attachment_is() to use wp_get_image_extensions().

Note: See TracTickets for help on using tickets.