From a437fa5e23f2411a0c113125308d77f5a2a25a4a Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 1 Jun 2007 22:54:46 +0000 Subject: [PATCH] Fix wp_title single post title filters. Props jhodgdon. fixes #3755 git-svn-id: http://svn.automattic.com/wordpress/trunk@5625 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index e2868cbe75..4f31c4a205 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -226,8 +226,7 @@ function wp_title($sep = '»', $display = true) { // If there is a post if ( is_single() || is_page() ) { $post = $wp_query->get_queried_object(); - $title = apply_filters('single_post_title', $title); - $title = strip_tags($post->post_title); + $title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) ); } $prefix = '';