Changes between Initial Version and Version 1 of Ticket #32544
- Timestamp:
- 06/01/2015 05:17:54 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32544 – Description
initial v1 7 7 An example use case is below, where all supported MIME types for a service are retrieved from its API and then the subset of types that are both supported by the WordPress install and the service are kept. 8 8 9 {{{ 9 10 function get_service_mime_types() { 10 11 // the desired function to get un-sanitized MIME types … … 17 18 return $allowed; 18 19 } 20 }}} 19 21 20 22 As a work-around, I'm currently using the following, but it's flawed -- if a custom MIME type is added conditionally by user type, it won't be included which is not the desired behavior. 21 23 22 `array_merge(wp_get_mime_types(), get_allowed_mime_types())` 24 {{{ 25 array_merge(wp_get_mime_types(), get_allowed_mime_types()) 26 }}}