Show thumbnails for comments on attachments on Edit Comments screen
git-svn-id: http://svn.automattic.com/wordpress/trunk@11026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
64f86fb376
commit
352b46a505
|
@ -2199,9 +2199,8 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
||||||
$post_link = get_the_title($post->ID);
|
$post_link = get_the_title($post->ID);
|
||||||
}
|
}
|
||||||
echo "<td $attributes>\n";
|
echo "<td $attributes>\n";
|
||||||
echo $post_link;
|
|
||||||
|
|
||||||
echo '<div class="response-links"><span class="post-com-count-wrapper">';
|
echo '<div class="response-links"><span class="post-com-count-wrapper">';
|
||||||
|
echo $post_link . '<br />';
|
||||||
$pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
|
$pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
|
||||||
if ( $pending_comments )
|
if ( $pending_comments )
|
||||||
echo '<strong>';
|
echo '<strong>';
|
||||||
|
@ -2210,7 +2209,10 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
||||||
echo '</strong>';
|
echo '</strong>';
|
||||||
echo '</span> ';
|
echo '</span> ';
|
||||||
echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>";
|
echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>";
|
||||||
echo '</div></td>';
|
echo '</div>';
|
||||||
|
if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) )
|
||||||
|
echo $thumb;
|
||||||
|
echo '</td>';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -1156,7 +1156,11 @@ strong .post-com-count {
|
||||||
}
|
}
|
||||||
|
|
||||||
.response-links {
|
.response-links {
|
||||||
margin: 4px 0;
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .attachment-80x60 {
|
||||||
|
padding: 4px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Admin Footer */
|
/* Admin Footer */
|
||||||
|
|
Loading…
Reference in New Issue