mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 15:19:15 +00:00
unchain. props Alex King. fixes #3959
git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f54b5cfac9
commit
72e8406345
@ -206,7 +206,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);
|
||||
$queried = $wp_query->get_queried_object();
|
||||
$title = strip_tags($queried->post_title);
|
||||
$title = apply_filters('single_post_title', $title);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user