From 8f164348c6899ad5126c742b4956b9e805f24d9c Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Thu, 16 Sep 2004 13:15:07 +0000 Subject: [PATCH] support for comment_type, while we move away from <*back /> stuff git-svn-id: https://develop.svn.wordpress.org/trunk@1669 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-comment.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-includes/template-functions-comment.php b/wp-includes/template-functions-comment.php index 354fc38f8f..8c183725b8 100644 --- a/wp-includes/template-functions-comment.php +++ b/wp-includes/template-functions-comment.php @@ -157,12 +157,15 @@ function comment_author_link() { function comment_type($commenttxt = 'Comment', $trackbacktxt = 'Trackback', $pingbacktxt = 'Pingback') { global $comment; - if (preg_match('||', $comment->comment_content)) + if (preg_match('||', $comment->comment_content) + || ('trackback' == $comment->comment_type)) { echo $trackbacktxt; - elseif (preg_match('||', $comment->comment_content)) + } elseif (preg_match('||', $comment->comment_content) + || ('pingback' == $comment->comment_type)) { echo $pingbacktxt; - else + } else { echo $commenttxt; + } } function comment_author_url() {