Make WordPress Core


Ignore:
Timestamp:
10/19/2007 06:39:07 PM (18 years ago)
Author:
ryan
Message:

AJAX list manipulation fixes for single post comment moderation. Props mdawaffe. fixes #5236

File:
1 edited

Legend:

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

    r6213 r6277  
    319319    echo " | <a href='$url' class='delete:the-comment-list:comment-$id::spam=1'>" . __('Spam') . '</a> ';
    320320}
    321 $post = get_post($comment->comment_post_ID, OBJECT, 'display');
    322 $post_title = wp_specialchars( $post->post_title, 'double' );
    323 $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
    324 ?>
    325  ] &#8212; <a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php echo $post_title; ?></a></p>
     321if ( !is_single() ) {
     322    $post = get_post($comment->comment_post_ID, OBJECT, 'display');
     323    $post_title = wp_specialchars( $post->post_title, 'double' );
     324    $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
     325?>
     326 ] &#8212; <a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php echo $post_title; ?></a>
     327<?php } ?>
     328</p>
    326329        </li>
    327330<?php
Note: See TracChangeset for help on using the changeset viewer.