[wp-trac] [WordPress Trac] #20819: Restrict Media Library header image chooser to only images (no audio, video, etc)

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 6 16:16:55 UTC 2012


#20819: Restrict Media Library header image chooser to only images (no audio,
video, etc)
------------------------------+-----------------------
 Reporter:  georgestephanis   |       Owner:  ryan
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  3.4
Component:  Appearance        |     Version:  3.4
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------

Comment (by nacin):

 Can we simply do:
 {{{
 if ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'custom-
 background' )
     add_filter( 'media_upload_mime_type_links', '__return_empty_array' );
 }}}

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


More information about the wp-trac mailing list