WordPress.org

Make WordPress Core

Changeset 5027


Ignore:
Timestamp:
03/12/07 05:20:34 (8 years ago)
Author:
markjaquith
Message:

unchain. props Alex King. fixes #3959

File:
1 edited

Legend:

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

    r5022 r5027  
    207207    // If there is a post 
    208208    if ( is_single() || is_page() ) { 
    209         $title = strip_tags($wp_query->get_queried_object()->post_title); 
     209        $queried = $wp_query->get_queried_object(); 
     210        $title = strip_tags($queried->post_title); 
    210211        $title = apply_filters('single_post_title', $title); 
    211212    } 
Note: See TracChangeset for help on using the changeset viewer.