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:
parent
bea964e517
commit
5b5a46eeb0
11
comments.php
11
comments.php
@ -67,6 +67,17 @@
|
|||||||
}
|
}
|
||||||
add_action('wp_head', 'comment_feed');
|
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() {
|
function comment_validate() {
|
||||||
|
|
||||||
global $smarty, $lang;
|
global $smarty, $lang;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user