apply filter before stripping tags. Props jhodgdon. fixes #3755

git-svn-id: https://develop.svn.wordpress.org/trunk@5014 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-10 05:13:40 +00:00
parent 16c3aa009f
commit fd1b078df6

View File

@ -215,8 +215,8 @@ function wp_title($sep = '»', $display = true) {
// If there is a post
if ( is_single() || is_page() ) {
$post = $wp_query->get_queried_object();
$title = strip_tags($post->post_title);
$title = apply_filters('single_post_title', $title);
$title = strip_tags($post->post_title);
}
$prefix = '';