Make WordPress Core

Opened 13 years ago

Closed 10 years ago

#16989 closed enhancement (invalid)

Add a parameter or filter to get_media_items() for media type.

Reported by: sanchothefat's profile sanchothefat Owned by:
Milestone: Priority: normal
Severity: trivial Version:
Component: Media Keywords: dev-feedback 2nd-opinion needs-patch
Focuses: Cc:

Description

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.

Change History (3)

#1 @nerx
13 years ago

  • Keywords 2nd-opinion added
  • Severity changed from minor to trivial

Could you please share the code? I think the code is the problem.

#2 @SergeyBiryukov
13 years ago

  • Keywords needs-patch added

#3 @johnbillion
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

N/A since our Backbone-ification in 3.5.

Note: See TracTickets for help on using tickets.