[wp-trac] [WordPress Trac] #22514: Add a way to filter attachments in the media modal

WordPress Trac noreply at wordpress.org
Tue Nov 20 22:11:13 UTC 2012


#22514: Add a way to filter attachments in the media modal
-------------------------+--------------------------
 Reporter:  koopersmith  |       Owner:  koopersmith
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.5
Component:  Media        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+--------------------------

Comment (by nacin):

 Also, this should use:

  * get_post_mime_types() (we'll only be using the first item in each
 array, but it's the filter that is important).

  * get_available_post_mime_types(), to know what mime types are in use.

 The available mime types can be intersected with get_post_mime_types()
 using wp_match_mime_types(). Using get_available_post_mime_types() is
 optional, given that we don't refresh the page and therefore couldn't
 easily account for files of a new type being uploaded. But, when new
 attachments are uploaded, we could see if their type is now available, and
 show them at that point. Huge bite of the apple, though.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22514#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list