Make WordPress Core

Changeset 10728


Ignore:
Timestamp:
03/06/2009 02:23:52 AM (17 years ago)
Author:
azaozz
Message:

Add author column to detached media, props scribu, fixes #9282

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r10686 r10728  
    304304    <th scope="col"></th>
    305305    <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th>
     306    <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th>
    306307    <th scope="col"><?php /* translators: column name in media */ echo _x('Date Added', 'media column name'); ?></th>
    307308</tr>
     
    313314    <th scope="col"></th>
    314315    <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th>
     316    <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th>
    315317    <th scope="col"><?php /* translators: column name in media */ echo _x('Date Added', 'media column name'); ?></th>
    316318</tr>
     
    332334<?php   } ?></td>
    333335
    334         <td><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
     336        <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
    335337        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
    336338
    337         <p>
     339        <div class="row-actions">
    338340        <?php
    339341        $actions = array();
     
    353355            echo "<span class='$action'>$link$sep</span>";
    354356        } ?>
    355         </p></td>
    356 
     357        </div></td>
     358        <td class="author column-author"><?php $author = get_userdata($post->post_author); echo $author->display_name; ?></td>
    357359<?php   if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
    358360            $t_time = $h_time = __('Unpublished');
     
    370372            }
    371373        } ?>
    372         <td><?php echo $h_time ?></td>
     374        <td class="date column-date"><?php echo $h_time ?></td>
    373375    </tr>
    374376<?php   }
Note: See TracChangeset for help on using the changeset viewer.