Changes between Version 2 and Version 3 of Ticket #30123, comment 1
- Timestamp:
- 10/27/2014 05:43:42 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30123, comment 1
v2 v3 65 65 ''Ps'': 66 66 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: 68 68 69 69 {{{ … … 71 71 }}} 72 72 73 where 73 where: 74 74 75 75 {{{ … … 88 88 }}} 89 89 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 ;-)