WordPress.org

Make WordPress Core

Changeset 23430


Ignore:
Timestamp:
02/15/2013 05:33:28 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Allow filtering attachments by Author name in Media Library. props greuben. fixes #16044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-media-list-table.php

    r23081 r23430  
    267267    case 'author':
    268268?>
    269         <td <?php echo $attributes ?>><?php the_author() ?></td>
     269        <td <?php echo $attributes ?>><?php
     270            printf( '<a href="%s">%s</a>',
     271                esc_url( add_query_arg( array( 'author' => get_the_author_meta('ID') ), 'upload.php' ) ),
     272                get_the_author()
     273            );
     274        ?></td>
    270275<?php
    271276        break;
Note: See TracChangeset for help on using the changeset viewer.