Make WordPress Core

Changeset 11026


Ignore:
Timestamp:
04/21/2009 05:01:04 AM (17 years ago)
Author:
azaozz
Message:

Show thumbnails for comments on attachments on Edit Comments screen

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11013 r11026  
    22002200                                        }
    22012201                                        echo "<td $attributes>\n";
    2202                                         echo $post_link;
    2203 
    22042202                                        echo '<div class="response-links"><span class="post-com-count-wrapper">';
     2203                                        echo $post_link . '<br />';
    22052204                                        $pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
    22062205                                        if ( $pending_comments )
     
    22112210                                        echo '</span> ';
    22122211                                        echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>";
    2213                                         echo '</div></td>';
     2212                                        echo '</div>';
     2213                                        if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) )
     2214                                                echo $thumb;
     2215                                        echo '</td>';
    22142216                                }
    22152217                                break;
  • trunk/wp-admin/wp-admin.css

    r10980 r11026  
    11571157
    11581158.response-links {
    1159         margin: 4px 0;
     1159        float: left;
     1160}
     1161
     1162#the-comment-list .attachment-80x60 {
     1163        padding: 4px 8px;
    11601164}
    11611165
Note: See TracChangeset for help on using the changeset viewer.