Ticket #4516: template-php-2-3.diff

File template-php-2-3.diff, 1.0 KB (added by jhodgdon, 6 years ago)

New patch for wp-admin/includes/template.php for WP 2.3

  • E:/EclipseWork/WordPressDev/wp-admin/includes/template.php

     
    286286        } 
    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; 
    292292?>