Changeset 27476 for trunk/src/wp-includes/media.php
- Timestamp:
- 03/09/2014 01:00:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r27472 r27476 2343 2343 ); 2344 2344 2345 $exts = array_merge( wp_get_audio_extensions(), wp_get_video_extensions() ); 2346 $mimes = get_allowed_mime_types(); 2347 $ext_mimes = array(); 2348 foreach ( $exts as $ext ) { 2349 foreach ( $mimes as $ext_preg => $mime_match ) { 2350 if ( preg_match( '#' . $ext . '#i', $ext_preg ) ) { 2351 $ext_mimes[ $ext ] = $mime_match; 2352 break; 2353 } 2354 } 2355 } 2356 2345 2357 $settings = array( 2346 2358 'tabs' => $tabs, … … 2355 2367 ), 2356 2368 'defaultProps' => $props, 2357 'embedExts' => array_merge( wp_get_audio_extensions(), wp_get_video_extensions() ), 2369 'embedExts' => $exts, 2370 'embedMimes' => $ext_mimes 2358 2371 ); 2359 2372
Note: See TracChangeset
for help on using the changeset viewer.