[wp-trac] [WordPress Trac] #41801: add wp_get_image_extensions() and wp_image_extensions filter

WordPress Trac noreply at wordpress.org
Fri Aug 17 18:23:46 UTC 2018


#41801: add wp_get_image_extensions() and wp_image_extensions filter
----------------------------------------+-----------------------
 Reporter:  pbiron                      |       Owner:  pbiron
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  5.0
Component:  Media                       |     Version:  4.9
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------

Comment (by pbiron):

 I now remember why my original patch didn't include unit tests: there were
 no unit tests for `wp_get_audio_extensions()` and
 `wp_get_video_extensions()`, so I figured they weren't needed for the new
 `wp_get_image_extensions()`.

 [https://core.trac.wordpress.org/attachment/ticket/41801/41801.2.diff
 41801.2.diff] adds unit tests for all 3 `wp_get_xxx_extensions()` funcs.

 It also adds a call to `wp_get_image_extensions()` in `populate_network()`
 to go along with the existing calls to `wp_get_audio_extensions()` and
 `wp_get_video_extensions()` there.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41801#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list