diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 7a83579..da23abb 100644
a
|
b
|
function wp_title($sep = '»', $display = true, $seplocation = '') { |
587 | 587 | $title = post_type_archive_title( '', false ); |
588 | 588 | } |
589 | 589 | |
590 | | // If there's a category or tag |
591 | | if ( is_category() || is_tag() ) { |
592 | | $title = single_term_title( '', false ); |
593 | | } |
594 | | |
595 | 590 | // If there's a taxonomy |
596 | 591 | if ( is_tax() ) { |
597 | | $term = get_queried_object(); |
598 | | if ( $term ) { |
599 | | $tax = get_taxonomy( $term->taxonomy ); |
600 | | $title = single_term_title( $tax->labels->name . $t_sep, false ); |
601 | | } |
| 592 | $title = single_term_title( '', false ); |
602 | 593 | } |
603 | 594 | |
604 | 595 | // If there's an author |
… |
… |
function single_term_title( $prefix = '', $display = true ) { |
807 | 798 | if ( empty( $term_name ) ) |
808 | 799 | return; |
809 | 800 | |
| 801 | $result = apply_filters( 'single_term_title_result', $prefix . $term_name, $term_name, $prefix ); |
| 802 | |
810 | 803 | if ( $display ) |
811 | | echo $prefix . $term_name; |
| 804 | echo $result; |
812 | 805 | else |
813 | | return $prefix . $term_name; |
| 806 | return $result; |
814 | 807 | } |
815 | 808 | |
816 | 809 | /** |