mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user