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:
parent
b3ce011b8f
commit
daf9fcc07a
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue