mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Unchain
git-svn-id: https://develop.svn.wordpress.org/trunk@5005 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user