From e80177b92bc87dde273818773d21098415fc2a30 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 26 Aug 2007 17:18:00 +0000 Subject: [PATCH] Display tag name, not slug, in title. Props ionfish. fixes #4812 git-svn-id: http://svn.automattic.com/wordpress/trunk@5945 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index d6c79fcb46..db171c52d9 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -186,15 +186,15 @@ function wp_title($sep = '»', $display = true) { else $category_name = $category_name[count($category_name)-2]; // there was a trailling slash } - $cat = get_term_by('slug', $category_name, 'category'); + $cat = get_term_by('slug', $category_name, 'category', OBJECT, 'display'); if ( $cat ) $title = apply_filters('single_cat_title', $cat->name); } if ( !empty($tag) ) { - $tag = get_term($tag, 'post_tag'); + $tag = get_term($tag, 'post_tag', OBJECT, 'display'); if ( ! empty($tag->name) ) - $title = apply_filters('single_tag_title', $tag->slug); + $title = apply_filters('single_tag_title', $tag->name); } // If there's an author