From 68ab72e70db3dbd0f924fb81841e6951969a67a4 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Mon, 30 Jun 2003 22:27:21 +0000 Subject: [PATCH] Fixed problem with previous_post always showing title. git-svn-id: http://svn.automattic.com/wordpress/trunk@248 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index 69e806233e..373915604d 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -622,7 +622,9 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $ ++$querycount; if ($lastpost) { $string = ''.$previous; - $string .= wptexturize(stripslashes($lastpost->post_title)); + if ($title == 'yes') { + $string .= wptexturize(stripslashes($lastpost->post_title)); + } $string .= ''; $format = str_replace('%', $string, $format); echo $format;