WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #30123, comment 1


Ignore:
Timestamp:
10/27/2014 05:43:42 PM (5 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30123, comment 1

    v2 v3  
    6565''Ps'':
    6666
    67 Another idea would be to use the {{{sanitize_mime_type}}} function:
     67'''Another idea''' would be to use the {{{sanitize_mime_type}}} core function:
    6868
    6969{{{
     
    7171}}}
    7272
    73 where
     73where:
    7474
    7575{{{
     
    8888}}}
    8989
    90 but I also wonder if we would need this function or {{{urlencode}}} or even {{{esc_attr()}}}, since it looks like these mime type strings have already gone through the {{{sanitize_mime_type}}} function through:
    91 
    92 {{{
    93 add_filter( 'post_mime_type', 'sanitize_mime_type' );
    94 }}}
    95 
    96 but then again, someone might remove or modify the filter ;-)