Changeset 24945
- Timestamp:
- 08/01/2013 01:33:56 PM (12 years ago)
- Location:
- branches/3.6
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
wp-includes/media.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.6
-
branches/3.6/wp-includes/media.php
r24932 r24945 871 871 $primary = false; 872 872 if ( ! empty( $src ) ) { 873 $type = wp_check_filetype( $src );873 $type = wp_check_filetype( $src, wp_get_mime_types() ); 874 874 if ( ! in_array( $type['ext'], $default_types ) ) 875 875 return sprintf( '<a class="wp-embedded-audio" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) ); … … 879 879 foreach ( $default_types as $ext ) { 880 880 if ( ! empty( $$ext ) ) { 881 $type = wp_check_filetype( $$ext );881 $type = wp_check_filetype( $$ext, wp_get_mime_types() ); 882 882 if ( $type['ext'] === $ext ) 883 883 $primary = true; … … 935 935 if ( empty( $fileurl ) ) 936 936 $fileurl = $$fallback; 937 $type = wp_check_filetype( $$fallback );937 $type = wp_check_filetype( $$fallback, wp_get_mime_types() ); 938 938 $html .= sprintf( $source, $type['type'], esc_url( $$fallback ) ); 939 939 } … … 1009 1009 $primary = false; 1010 1010 if ( ! empty( $src ) ) { 1011 $type = wp_check_filetype( $src );1011 $type = wp_check_filetype( $src, wp_get_mime_types() ); 1012 1012 if ( ! in_array( $type['ext'], $default_types ) ) 1013 1013 return sprintf( '<a class="wp-embedded-video" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) ); … … 1017 1017 foreach ( $default_types as $ext ) { 1018 1018 if ( ! empty( $$ext ) ) { 1019 $type = wp_check_filetype( $$ext );1019 $type = wp_check_filetype( $$ext, wp_get_mime_types() ); 1020 1020 if ( $type['ext'] === $ext ) 1021 1021 $primary = true; … … 1076 1076 if ( empty( $fileurl ) ) 1077 1077 $fileurl = $$fallback; 1078 $type = wp_check_filetype( $$fallback );1078 $type = wp_check_filetype( $$fallback, wp_get_mime_types() ); 1079 1079 // m4v sometimes shows up as video/mpeg which collides with mp4 1080 1080 if ( 'm4v' === $type['ext'] )
Note: See TracChangeset
for help on using the changeset viewer.