diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index f4948975b2..44f2b7907c 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -164,6 +164,7 @@ class WP_Media_List_Table extends WP_List_Table { $alt = ''; while ( have_posts() ) : the_post(); + $user_can_edit = current_user_can( 'edit_post', $post->ID ); if ( $this->is_trash && $post->post_status != 'trash' || !$this->is_trash && $post->post_status == 'trash' ) @@ -190,7 +191,11 @@ foreach ( $columns as $column_name => $column_display_name ) { case 'cb': ?> -
ID ), $matches ) ) @@ -288,15 +301,25 @@ foreach ( $columns as $column_name => $column_display_name ) { $title =_draft_or_post_title( $post->post_parent ); } ?> -