[wp-trac] [WordPress Trac] #16989: Add a parameter or filter to get_media_items() for media type.
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 28 16:19:55 UTC 2011
#16989: Add a parameter or filter to get_media_items() for media type.
--------------------------+-----------------------------
Reporter: sanchothefat | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: minor | Keywords: dev-feedback
--------------------------+-----------------------------
It's a bit confusing IMO to have all media items appearing in the gallery
tab of the media upload popup as it only deals with images. I'm making an
audio player plugin with soundmanager2.js that uses an extra media upload
tab to organise the uploaded audio files and insert a playlist shortcode
into the post.
To do this I had to take a copy of get_media_items() with my filter
hardcoded in. I can share my code if desired but it's not the prettiest,
I'd like a more wordpressy way of doing this in future releases when
you're able.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16989>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list