Unchain
git-svn-id: http://svn.automattic.com/wordpress/trunk@5005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f4ce503381
commit
b4d8dba0f6
|
@ -214,7 +214,8 @@ function wp_title($sep = '»', $display = true) {
|
|||
|
||||
// If there is a post
|
||||
if ( is_single() || is_page() ) {
|
||||
$title = strip_tags($wp_query->get_queried_object()->post_title);
|
||||
$post = $wp_query->get_queried_object();
|
||||
$title = strip_tags($post->post_title);
|
||||
$title = apply_filters('single_post_title', $title);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue