Make WordPress Core


Ignore:
Timestamp:
02/22/2008 05:53:47 AM (17 years ago)
Author:
ryan
Message:

Media library work from andy. see #5911

File:
1 edited

Legend:

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

    r6910 r6974  
    4747    case 'media':
    4848        ?>
    49         <td><strong><a href="# TODO: upload.php?action=edit&post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong>
     49        <td><strong><a href="# TODO: upload.php?action=edit&post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br />
     50        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', $post->guid)); ?>
     51        <?php do_action('manage_media_media_column', $post->ID); ?>
     52        </td>
    5053        <?php
    51         // TODO
    5254        break;
    5355
    5456    case 'desc':
    5557        ?>
    56         <td><?php has_excerpt() ? the_excerpt() : null; ?></td>
     58        <td><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
    5759        <?php
    58         // TODO
    5960        break;
    6061
     
    9394        <td><a href="<?php the_permalink(); ?>"><?php _e('Permalink'); ?></a></td>
    9495        <?php
    95         // TODO
    9696        break;
    9797
    9898    default:
    9999        ?>
    100         <td><?php do_action('manage_posts_custom_column', $column_name, $id); ?></td>
     100        <td><?php do_action('manage_media_custom_column', $column_name, $id); ?></td>
    101101        <?php
    102102        break;
Note: See TracChangeset for help on using the changeset viewer.