From 6f9fcd2213a0d3bb4bd6819027d41b32f62d4b1e Mon Sep 17 00:00:00 2001 From: Mike Little Date: Mon, 30 Jun 2003 22:27:21 +0000 Subject: [PATCH] Fixed problem with previous_post always showing title. git-svn-id: https://develop.svn.wordpress.org/trunk@248 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;