mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
I18n for custom taxonomies. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -588,10 +588,9 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
|
||||
if ( is_tax() ) {
|
||||
$taxonomy = get_query_var( 'taxonomy' );
|
||||
$tax = get_taxonomy( $taxonomy );
|
||||
$tax = $tax->label;
|
||||
$term = $wp_query->get_queried_object();
|
||||
$term = $term->name;
|
||||
$title = $tax . $t_sep . $term;
|
||||
$title = $tax->labels->name . $t_sep . $term;
|
||||
}
|
||||
|
||||
//If it's a search
|
||||
|
||||
Reference in New Issue
Block a user