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

git-svn-id: http://core.svn.wordpress.org/trunk@23430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-02-15 17:33:28 +00:00
parent 0c69e9f00d
commit 2312092aad

View File

@ -266,7 +266,12 @@ foreach ( $columns as $column_name => $column_display_name ) {
case 'author':
?>
<td <?php echo $attributes ?>><?php the_author() ?></td>
<td <?php echo $attributes ?>><?php
printf( '<a href="%s">%s</a>',
esc_url( add_query_arg( array( 'author' => get_the_author_meta('ID') ), 'upload.php' ) ),
get_the_author()
);
?></td>
<?php
break;