Changeset 42452 for branches/4.9
- Timestamp:
- 01/15/2018 10:23:24 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/functions.php
r42267 r42452 2450 2450 'wav' => 'audio/wav', 2451 2451 'ogg|oga' => 'audio/ogg', 2452 'flac' => 'audio/flac', 2452 2453 'mid|midi' => 'audio/midi', 2453 2454 'wma' => 'audio/x-ms-wma', … … 2535 2536 return apply_filters( 'ext2type', array( 2536 2537 'image' => array( 'jpg', 'jpeg', 'jpe', 'gif', 'png', 'bmp', 'tif', 'tiff', 'ico' ), 2537 'audio' => array( 'aac', 'ac3', 'aif', 'aiff', ' m3a', 'm4a', 'm4b', 'mka', 'mp1', 'mp2', 'mp3', 'ogg', 'oga', 'ram', 'wav', 'wma' ),2538 'audio' => array( 'aac', 'ac3', 'aif', 'aiff', 'flac', 'm3a', 'm4a', 'm4b', 'mka', 'mp1', 'mp2', 'mp3', 'ogg', 'oga', 'ram', 'wav', 'wma' ), 2538 2539 'video' => array( '3g2', '3gp', '3gpp', 'asf', 'avi', 'divx', 'dv', 'flv', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'mpv', 'ogm', 'ogv', 'qt', 'rm', 'vob', 'wmv' ), 2539 2540 'document' => array( 'doc', 'docx', 'docm', 'dotm', 'odt', 'pages', 'pdf', 'xps', 'oxps', 'rtf', 'wp', 'wpd', 'psd', 'xcf' ), -
branches/4.9/src/wp-includes/media.php
r41937 r42452 2158 2158 * 2159 2159 * @param array $extensions An array of support audio formats. Defaults are 2160 * 'mp3', 'ogg', ' m4a', 'wav'.2161 */ 2162 return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', ' m4a', 'wav' ) );2160 * 'mp3', 'ogg', 'flac', 'm4a', 'wav'. 2161 */ 2162 return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) ); 2163 2163 } 2164 2164 -
branches/4.9/tests/phpunit/tests/functions.php
r42011 r42452 1156 1156 ), 1157 1157 ), 1158 // FLAC file. 1159 array( 1160 DIR_TESTDATA . '/uploads/small-audio.flac', 1161 'small-audio.flac', 1162 array( 1163 'ext' => 'flac', 1164 'type' => 'audio/flac', 1165 'proper_filename' => false, 1166 ), 1167 ), 1158 1168 ) ); 1159 1169 }
Note: See TracChangeset
for help on using the changeset viewer.