mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-19 21:15:23 +00:00
Fix wp_title single post title filters. Props jhodgdon. fixes #3755
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fb7c000820
commit
e8eda36825
@ -218,8 +218,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…
x
Reference in New Issue
Block a user