From 466a81805d8bc4767f8ea67af30d3d3b37195f0f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 3 Oct 2004 17:07:53 +0000 Subject: [PATCH] Fix wp_title() for pages. git-svn-id: https://develop.svn.wordpress.org/trunk@1729 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 41151551e5..2410aa874f 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -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); }