Opened 10 years ago
Last modified 7 years ago
#34853 new enhancement
A helper method should be created to centralize which extensions are used for images.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.4 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
In keeping with the helper methods introduced in 3.6 for audio/media extensions retrieval, the retrieval of image extensions should similarly be wrapped in a filterable method. Currently all places where this information is needed appear to simply define their own array and use that -- very un-DRY.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Proposed patch for creating wp_get_image_extensions()