Media: Add aac
to the list of allowed file types.
Props desrosj. Fixes #42919. git-svn-id: https://develop.svn.wordpress.org/trunk@42697 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fca30d4b0e
commit
4bc7afd701
@ -2556,6 +2556,7 @@ function wp_get_mime_types() {
|
|||||||
'dfxp' => 'application/ttaf+xml',
|
'dfxp' => 'application/ttaf+xml',
|
||||||
// Audio formats.
|
// Audio formats.
|
||||||
'mp3|m4a|m4b' => 'audio/mpeg',
|
'mp3|m4a|m4b' => 'audio/mpeg',
|
||||||
|
'aac' => 'audio/aac',
|
||||||
'ra|ram' => 'audio/x-realaudio',
|
'ra|ram' => 'audio/x-realaudio',
|
||||||
'wav' => 'audio/wav',
|
'wav' => 'audio/wav',
|
||||||
'ogg|oga' => 'audio/ogg',
|
'ogg|oga' => 'audio/ogg',
|
||||||
|
@ -2243,9 +2243,9 @@ function wp_get_audio_extensions() {
|
|||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*
|
*
|
||||||
* @param array $extensions An array of supported audio formats. Defaults are
|
* @param array $extensions An array of supported audio formats. Defaults are
|
||||||
* 'mp3', 'ogg', 'flac', 'm4a', 'wav'.
|
* 'mp3', 'aac', 'ogg', 'flac', 'm4a', 'wav'.
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) );
|
return apply_filters( 'wp_audio_extensions', array( 'mp3', 'aac', 'ogg', 'flac', 'm4a', 'wav' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user