Make WordPress Core


Ignore:
Timestamp:
08/31/2007 11:55:56 PM (17 years ago)
Author:
ryan
Message:

Add some filtering. Props jhodgdon. see #4516

File:
1 edited

Legend:

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

    r5964 r5998  
    287287    echo " | <a href=\"" . wp_nonce_url("comment.php?action=deletecomment&amp;dt=spam&amp;p=" . $comment->comment_post_ID . "&amp;c=" . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to mark as spam this comment by '%s'.\n'Cancel' to stop, 'OK' to mark as spam."), $comment->comment_author))  . "', theCommentList );\">" . __('Spam') . "</a> ";
    288288}
    289 $post = get_post($comment->comment_post_ID);
     289$post = get_post($comment->comment_post_ID, OBJECT, 'display');
    290290$post_title = wp_specialchars( $post->post_title, 'double' );
    291291$post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
Note: See TracChangeset for help on using the changeset viewer.