Make WordPress Core


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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.