Changeset 23988
- Timestamp:
- 04/14/2013 10:33:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23984 r23988 861 861 if ( ! empty( $src ) ) { 862 862 $type = wp_check_filetype( $src ); 863 if ( ! in_array( $type['ext'], $default_types ) ) { 864 printf( '<a class="wp-post-format-link-audio" href="%1$s">%1$s</a>', $src ); 865 return; 866 } 863 if ( ! in_array( $type['ext'], $default_types ) ) 864 return sprintf( '<a class="wp-post-format-link-audio" href="%1$s">%1$s</a>', $src ); 867 865 $primary = true; 868 866 array_unshift( $default_types, 'src' ); … … 968 966 if ( ! empty( $src ) ) { 969 967 $type = wp_check_filetype( $src ); 970 if ( ! in_array( $type['ext'], $default_types ) ) { 971 printf( '<a class="wp-post-format-link-video" href="%1$s">%1$s</a>', $src ); 972 return; 973 } 968 if ( ! in_array( $type['ext'], $default_types ) ) 969 return sprintf( '<a class="wp-post-format-link-video" href="%1$s">%1$s</a>', $src ); 974 970 $primary = true; 975 971 array_unshift( $default_types, 'src' );
Note: See TracChangeset
for help on using the changeset viewer.