WordPress.org

Make WordPress Core

Changeset 42697


Ignore:
Timestamp:
02/11/2018 04:39:54 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Media: Add aac to the list of allowed file types.

Props desrosj.
Fixes #42919.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r42678 r42697  
    25572557            // Audio formats.
    25582558            'mp3|m4a|m4b'                  => 'audio/mpeg',
     2559            'aac'                          => 'audio/aac',
    25592560            'ra|ram'                       => 'audio/x-realaudio',
    25602561            'wav'                          => 'audio/wav',
  • trunk/src/wp-includes/media.php

    r42696 r42697  
    22442244     *
    22452245     * @param array $extensions An array of supported audio formats. Defaults are
    2246      *                          'mp3', 'ogg', 'flac', 'm4a', 'wav'.
    2247      */
    2248     return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) );
     2246     *                          'mp3', 'aac', 'ogg', 'flac', 'm4a', 'wav'.
     2247     */
     2248    return apply_filters( 'wp_audio_extensions', array( 'mp3', 'aac', 'ogg', 'flac', 'm4a', 'wav' ) );
    22492249}
    22502250
Note: See TracChangeset for help on using the changeset viewer.