Fix wp_title() for pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0584402e9f
commit
9490d5bef2
|
@ -166,7 +166,7 @@ function wp_title($sep = '»', $display = true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there's a post
|
// If there's a post
|
||||||
if (is_single()) {
|
if (is_single() || is_page()) {
|
||||||
$title = strip_tags($posts[0]->post_title);
|
$title = strip_tags($posts[0]->post_title);
|
||||||
$title = apply_filters('single_post_title', $title);
|
$title = apply_filters('single_post_title', $title);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue