mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
0c69e9f00d
commit
2312092aad
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user