Make WordPress Core

Ticket #40921: 40921.diff

File 40921.diff, 534 bytes (added by toddhalfpenny, 7 years ago)

Adding mp4 to wp_audio_extensions

  • wp-includes/media.php

     
    21612161         * @param array $extensions An array of support audio formats. Defaults are
    21622162         *                          'mp3', 'ogg', 'm4a', 'wav'.
    21632163         */
    2164         return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'm4a', 'wav' ) );
     2164        return apply_filters( 'wp_audio_extensions', array( 'mp3', 'mp4', 'ogg', 'm4a', 'wav' ) );
    21652165}
    21662166
    21672167/**