Make WordPress Core


Ignore:
Timestamp:
07/15/2008 03:33:34 AM (16 years ago)
Author:
mdawaffe
Message:

crazyhorse: In media library, clicking image goes to edit

File:
1 edited

Legend:

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

    r8154 r8338  
    4848    case 'icon':
    4949        ?>
    50         <td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td>
     50        <td class="media-icon"><?php
     51            if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) {
     52?>
     53
     54                <a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>">
     55                    <?php echo $thumb; ?>
     56                </a>
     57
     58<?php           }
     59        ?></td>
    5160        <?php
    5261        // TODO
Note: See TracChangeset for help on using the changeset viewer.