Fixed problem with previous_post always showing title.
git-svn-id: https://develop.svn.wordpress.org/trunk@248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d5cc6340dc
commit
6f9fcd2213
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user