Obey $prefix when $display = false in single_term_title(), single_post_title(), and post_type_archive_title(). props yoavf, fixes #16632.

Built from https://develop.svn.wordpress.org/trunk@25041


git-svn-id: http://core.svn.wordpress.org/trunk@25028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-16 20:54:10 +00:00
parent b3ce011b8f
commit daf9fcc07a
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;
}
/**