apply filter before stripping tags. Props jhodgdon. fixes #3755
git-svn-id: http://svn.automattic.com/wordpress/trunk@5014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
774bdc405b
commit
198bf65525
|
@ -215,8 +215,8 @@ function wp_title($sep = '»', $display = true) {
|
||||||
// If there is a post
|
// If there is a post
|
||||||
if ( is_single() || is_page() ) {
|
if ( is_single() || is_page() ) {
|
||||||
$post = $wp_query->get_queried_object();
|
$post = $wp_query->get_queried_object();
|
||||||
$title = strip_tags($post->post_title);
|
|
||||||
$title = apply_filters('single_post_title', $title);
|
$title = apply_filters('single_post_title', $title);
|
||||||
|
$title = strip_tags($post->post_title);
|
||||||
}
|
}
|
||||||
|
|
||||||
$prefix = '';
|
$prefix = '';
|
||||||
|
|
Loading…
Reference in New Issue