Replace is_term() with is_tax(). See #14161
git-svn-id: http://svn.automattic.com/wordpress/trunk@15599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6feafae8a1
commit
2570a9e7df
|
@ -706,7 +706,7 @@ function single_term_title( $prefix = '', $display = true ) {
|
|||
$term_name = apply_filters( 'single_cat_title', $term->name );
|
||||
elseif ( is_tag() )
|
||||
$term_name = apply_filters( 'single_tag_title', $term->name );
|
||||
elseif ( is_term() )
|
||||
elseif ( is_tax() )
|
||||
$term_name = apply_filters( 'single_term_title', $term->name );
|
||||
else
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue