comments page now show a "comments" text in <title> of the page (as requested some time ago on the forums)

This commit is contained in:
real_nowhereman 2010-09-05 13:22:29 +00:00
parent bea964e517
commit 5b5a46eeb0

View File

@ -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;