Changeset 5945 for trunk/wp-includes/general-template.php
- Timestamp:
- 08/26/2007 05:18:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r5944 r5945 187 187 $category_name = $category_name[count($category_name)-2]; // there was a trailling slash 188 188 } 189 $cat = get_term_by('slug', $category_name, 'category' );189 $cat = get_term_by('slug', $category_name, 'category', OBJECT, 'display'); 190 190 if ( $cat ) 191 191 $title = apply_filters('single_cat_title', $cat->name); … … 193 193 194 194 if ( !empty($tag) ) { 195 $tag = get_term($tag, 'post_tag' );195 $tag = get_term($tag, 'post_tag', OBJECT, 'display'); 196 196 if ( ! empty($tag->name) ) 197 $title = apply_filters('single_tag_title', $tag-> slug);197 $title = apply_filters('single_tag_title', $tag->name); 198 198 } 199 199
Note: See TracChangeset
for help on using the changeset viewer.