From 2cac53bd371d511361d377f9376452117a273d76 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 26 Oct 2003 05:28:58 +0000 Subject: [PATCH] Comments should use new permalinks. git-svn-id: https://develop.svn.wordpress.org/trunk@471 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2template.functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index f99a96747c..706d6ba97d 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -1162,8 +1162,8 @@ function comments_link($file='', $echo=true) { global $querystring_start, $querystring_equal, $querystring_separator; if ($file == '') $file = $pagenow; if ($file == '/') $file = ''; - if (!$echo) return $file.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1#comments'; - else echo $file.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1#comments'; + if (!$echo) return get_permalink() . '#comments'; + else echo get_permalink() . '#comments'; } function comments_popup_script($width=400, $height=400, $file='b2commentspopup.php') { @@ -1188,7 +1188,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com return; } } - echo '