WordPress.org

Make WordPress Core

Ticket #13235: 13235.5.diff

File 13235.5.diff, 872 bytes (added by sbressler, 3 years ago)

Use WP functions to generate URL (per Nacin's request)

  • wp-admin/includes/list-table-media.php

     
    260260                break; 
    261261 
    262262        case 'author': 
     263                $author_media_url = esc_url( add_query_arg( 'author', get_the_author_meta('ID'), admin_url( 'upload.php' ) ) ); 
    263264?> 
    264                 <td <?php echo $attributes ?>><?php the_author() ?></td> 
     265                <td <?php echo $attributes ?>><a href="<?php echo $author_media_url; ?>"><?php the_author() ?></a></td> 
    265266<?php 
    266267                break; 
    267268 
     
    419420?> 
    420421                </td> 
    421422                <td class="author column-author"> 
    422                         <?php $author = get_userdata( $post->post_author ); echo $author->display_name; ?> 
     423                        <?php the_author(); ?> 
    423424                </td> 
    424425<?php 
    425426                if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {