From c0de7fb232b31f04ea26744b2a27cc0ae26676e6 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: http://svn.automattic.com/wordpress/trunk@1669 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 354fc38f8..8c183725b 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() {