WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/26/2008 08:54:11 AM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r6995 r7036  
    4848        ?>
    4949        <td><strong><a href="# TODO: upload.php?action=edit&amp;post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br />
    50         <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', $post->guid)); ?>
     50        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
    5151        <?php do_action('manage_media_media_column', $post->ID); ?>
    5252        </td>
Note: See TracChangeset for help on using the changeset viewer.