Set 'taxonomy' and 'term' query vars for back-compat. Fixes #12659

git-svn-id: https://develop.svn.wordpress.org/trunk@16381 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-15 10:51:39 +00:00
parent ed4788b696
commit e72a75d2d6
2 changed files with 26 additions and 8 deletions
+2 -1
View File
@@ -549,7 +549,8 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
// If there's a taxonomy
if ( is_tax() ) {
$tax = get_taxonomy( get_query_var('taxonomy') );
$term = get_queried_object();
$tax = get_taxonomy( $term->taxonomy );
$title = single_term_title( $tax->labels->name . $t_sep, false );
}