Fixed problem with previous_post always showing title.

git-svn-id: http://svn.automattic.com/wordpress/trunk@248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-30 22:27:21 +00:00
parent 06b347f81b
commit 68ab72e70d
1 changed files with 3 additions and 1 deletions

View File

@ -622,7 +622,9 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $
++$querycount;
if ($lastpost) {
$string = '<a href="'.$blogfilename.$querystring_start.'p'.$querystring_equal.$lastpost->ID.$querystring_separator.'more'.$querystring_equal.'1'.$querystring_separator.'c'.$querystring_equal.'1">'.$previous;
$string .= wptexturize(stripslashes($lastpost->post_title));
if ($title == 'yes') {
$string .= wptexturize(stripslashes($lastpost->post_title));
}
$string .= '</a>';
$format = str_replace('%', $string, $format);
echo $format;