From 3ff9ca71db709a8e4420e0763d3cef5b1269ed60 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 21 Apr 2009 05:01:04 +0000 Subject: [PATCH] Show thumbnails for comments on attachments on Edit Comments screen git-svn-id: https://develop.svn.wordpress.org/trunk@11026 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 8 +++++--- wp-admin/wp-admin.css | 6 +++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index d3abfc1400..890b866ef5 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2199,9 +2199,8 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, $post_link = get_the_title($post->ID); } echo "\n"; - echo $post_link; - echo ''; + echo ''; + if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) ) + echo $thumb; + echo ''; } break; default: diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index fe19ada700..06bf3567d4 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1156,7 +1156,11 @@ strong .post-com-count { } .response-links { - margin: 4px 0; + float: left; +} + +#the-comment-list .attachment-80x60 { + padding: 4px 8px; } /* Admin Footer */