From 5b5a46eeb0535e1bda931ec4c53d3c28c4fff4a5 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sun, 5 Sep 2010 13:22:29 +0000 Subject: [PATCH] comments page now show a "comments" text in of the page (as requested some time ago on the forums) --- comments.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/comments.php b/comments.php index b39a00b..8c7e7a4 100644 --- a/comments.php +++ b/comments.php @@ -67,6 +67,17 @@ } add_action('wp_head', 'comment_feed'); + function comment_pagetitle($val, $sep) { + global $fpdb, $lang; + $q =& $fpdb->getQuery(); + list($id, $e) = @$q->peekEntry(); + if ($e) + return "{$e['subject']} : {$lang['main']['comments']} {$sep} $val "; + else return $val; + } + remove_filter('wp_title', 'index_permatitle'); + add_filter('wp_title', 'comment_pagetitle', 10, 2); + function comment_validate() { global $smarty, $lang;