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:
Andrew Nacin 2013-08-16 20:53:37 +00:00
parent 97dfd85d30
commit 09e8223871
1 changed files with 3 additions and 3 deletions

View File

@ -677,7 +677,7 @@ function single_post_title($prefix = '', $display = true) {
if ( $display )
echo $prefix . $title;
else
return $title;
return $prefix . $title;
}
/**
@ -702,7 +702,7 @@ function post_type_archive_title( $prefix = '', $display = true ) {
if ( $display )
echo $prefix . $title;
else
return $title;
return $prefix . $title;
}
/**
@ -785,7 +785,7 @@ function single_term_title( $prefix = '', $display = true ) {
if ( $display )
echo $prefix . $term_name;
else
return $term_name;
return $prefix . $term_name;
}
/**