[wp-trac] [WordPress Trac] #30123: Custom Mime Type filter problem in upload.php list view

WordPress Trac noreply at wordpress.org
Wed Dec 31 15:30:35 UTC 2014


#30123: Custom Mime Type filter problem in upload.php list view
--------------------------+-----------------------------
 Reporter:  csschris      |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Media         |     Version:  4.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by mdgl):

 Note that the chosen solution here using `sanitize_mime_type()` breaks
 when presented with a comma-separated list of MIME types which is a valid
 return from `get_post_mime_types()`. The originally suggested fix of using
 `esc_attr()` works properly and seems more correct to me. See #30788.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30123#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list