Obey $prefix when $display = false in single_term_title(), single_post_title(), and post_type_archive_title(). props yoavf, fixes #16632.
git-svn-id: https://develop.svn.wordpress.org/trunk@25041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
97dfd85d30
commit
09e8223871
@ -677,7 +677,7 @@ function single_post_title($prefix = '', $display = true) {
|
|||||||
if ( $display )
|
if ( $display )
|
||||||
echo $prefix . $title;
|
echo $prefix . $title;
|
||||||
else
|
else
|
||||||
return $title;
|
return $prefix . $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -702,7 +702,7 @@ function post_type_archive_title( $prefix = '', $display = true ) {
|
|||||||
if ( $display )
|
if ( $display )
|
||||||
echo $prefix . $title;
|
echo $prefix . $title;
|
||||||
else
|
else
|
||||||
return $title;
|
return $prefix . $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -785,7 +785,7 @@ function single_term_title( $prefix = '', $display = true ) {
|
|||||||
if ( $display )
|
if ( $display )
|
||||||
echo $prefix . $term_name;
|
echo $prefix . $term_name;
|
||||||
else
|
else
|
||||||
return $term_name;
|
return $prefix . $term_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user