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:
parent
32ca2518b3
commit
e353d6c033
@ -266,7 +266,12 @@ foreach ( $columns as $column_name => $column_display_name ) {
|
|||||||
|
|
||||||
case 'author':
|
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
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user