WordPress.org

Make WordPress Core

Ticket #9282: detached.patch

File detached.patch, 1.5 KB (added by scribu, 6 years ago)

Add author column to detached media table

  • home/cristi/svn/wp/wp-admin/upload.php

     
    303303        <th scope="col" class="check-column"><input type="checkbox" /></th> 
    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> 
    308309</thead> 
     
    312313        <th scope="col" class="check-column"><input type="checkbox" /></th> 
    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> 
    317319</tfoot> 
     
    353355                        echo "<span class='$action'>$link$sep</span>"; 
    354356                } ?> 
    355357                </p></td> 
    356  
     358                <td><?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'); 
    359361                } else {