From 747a7a14f41d8b290e790baf8e01f160ff5d172e 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: https://develop.svn.wordpress.org/trunk@5625 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 = '';