Make WordPress Core

Changeset 28259


Ignore:
Timestamp:
05/05/2014 08:07:53 PM (11 years ago)
Author:
wonderboymusic
Message:

Add .dfxp and .srt files to mime-type whitelist in wp_get_mime_types(). They are both captioning formats supported by MediaElement.

Props joedolson.
Fixes #27643.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r28240 r28259  
    146146     *
    147147     * @since 2.8.0
    148      * 
     148     *
    149149     * @param string $j          Formatted date string.
    150150     * @param string $req_format Format to display the date.
     
    20962096    'mkv' => 'video/x-matroska',
    20972097    // Text formats
    2098     'txt|asc|c|cc|h' => 'text/plain',
     2098    'txt|asc|c|cc|h|srt' => 'text/plain',
    20992099    'csv' => 'text/csv',
    21002100    'tsv' => 'text/tab-separated-values',
     
    21042104    'htm|html' => 'text/html',
    21052105    'vtt' => 'text/vtt',
     2106    'dfxp' => 'application/ttaf+xml',
    21062107    // Audio formats
    21072108    'mp3|m4a|m4b' => 'audio/mpeg',
     
    41224123        /**
    41234124         * Filter the list of protocols allowed in HTML attributes.
    4124          * 
    4125          * @since 3.0.0 
     4125         *
     4126         * @since 3.0.0
    41264127         *
    41274128         * @param array $protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.
Note: See TracChangeset for help on using the changeset viewer.