Make WordPress Core

Changeset 5005


Ignore:
Timestamp:
03/09/2007 04:13:42 AM (18 years ago)
Author:
ryan
Message:

Unchain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r5004 r5005  
    215215    // If there is a post
    216216    if ( is_single() || is_page() ) {
    217         $title = strip_tags($wp_query->get_queried_object()->post_title);
     217        $post = $wp_query->get_queried_object();
     218        $title = strip_tags($post->post_title);
    218219        $title = apply_filters('single_post_title', $title);
    219220    }
Note: See TracChangeset for help on using the changeset viewer.