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
This commit is contained in:
parent
9a4c736b19
commit
747a7a14f4
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user