From 36334c2c860d3369f45af45a19e19259655f4966 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 9 Mar 2007 04:13:42 +0000 Subject: [PATCH] Unchain git-svn-id: https://develop.svn.wordpress.org/trunk@5005 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 2a01f700ac..363a320dd9 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -214,7 +214,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); + $post = $wp_query->get_queried_object(); + $title = strip_tags($post->post_title); $title = apply_filters('single_post_title', $title); }