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

git-svn-id: https://develop.svn.wordpress.org/trunk@23430 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-02-15 17:33:28 +00:00
parent 32ca2518b3
commit e353d6c033
1 changed files with 6 additions and 1 deletions

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;