[wp-trac] [WordPress Trac] #24504: Have wp_get_(audio|video)_extensions() wrap wp_get_mime_types( $type = null ) if feasible
WordPress Trac
noreply at wordpress.org
Thu Jun 6 14:44:52 UTC 2013
#24504: Have wp_get_(audio|video)_extensions() wrap wp_get_mime_types( $type = null
) if feasible
---------------------------+------------------
Reporter: aaroncampbell | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
---------------------------+------------------
Comment (by markjaquith):
Strategy: pass in a "before the slash" part of the mime type to
`wp_get_mime_types()` which will only return those ones. Get rid of
`wp_get_audio_extensions()` and `wp_get_video_extensions()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24504#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list