Only apply a subtle semi-transparent border to attachments that are images in the media list table.

See [28842], #15860.



git-svn-id: https://develop.svn.wordpress.org/trunk@28843 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-06-26 01:57:37 +00:00
parent f92d73310a
commit cf15c523d3
2 changed files with 6 additions and 2 deletions

View File

@@ -279,7 +279,8 @@ foreach ( $columns as $column_name => $column_display_name ) {
break;
case 'icon':
$attributes = 'class="column-icon media-icon"' . $style;
list( $mime ) = explode( '/', $post->post_mime_type );
$attributes = 'class="column-icon media-icon ' . $mime . '-icon"' . $style;
?>
<td <?php echo $attributes ?>><?php
if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) {