Fix wp_title() for pages.
git-svn-id: https://develop.svn.wordpress.org/trunk@1729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1268dcb29b
commit
466a81805d
@ -166,7 +166,7 @@ function wp_title($sep = '»', $display = true) {
|
||||
}
|
||||
|
||||
// If there's a post
|
||||
if (is_single()) {
|
||||
if (is_single() || is_page()) {
|
||||
$title = strip_tags($posts[0]->post_title);
|
||||
$title = apply_filters('single_post_title', $title);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user