update mime-to-icon matching and get filename from function instead of guid. Props andy. see #5911

git-svn-id: https://develop.svn.wordpress.org/trunk@7036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-26 08:54:11 +00:00
parent 7bf88a1224
commit 7825a986f9
2 changed files with 58 additions and 38 deletions

View File

@@ -47,7 +47,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'media':
?>
<td><strong><a href="# TODO: upload.php?action=edit&amp;post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br />
<?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', $post->guid)); ?>
<?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
<?php do_action('manage_media_media_column', $post->ID); ?>
</td>
<?php