unchain. props Alex King. fixes #3959

git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-03-12 05:20:34 +00:00
parent f54b5cfac9
commit 72e8406345

View File

@ -206,7 +206,8 @@ function wp_title($sep = '»', $display = true) {
// If there is a post
if ( is_single() || is_page() ) {
$title = strip_tags($wp_query->get_queried_object()->post_title);
$queried = $wp_query->get_queried_object();
$title = strip_tags($queried->post_title);
$title = apply_filters('single_post_title', $title);
}