From daf9fcc07a52192a7f798440b0ee5cd2a9711707 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 16 Aug 2013 20:54:10 +0000 Subject: [PATCH] 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 --- wp-includes/general-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index b586762473..1e6cf92da3 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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; } /**