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:
parent
06b347f81b
commit
68ab72e70d
|
@ -622,7 +622,9 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $
|
||||||
++$querycount;
|
++$querycount;
|
||||||
if ($lastpost) {
|
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 = '<a href="'.$blogfilename.$querystring_start.'p'.$querystring_equal.$lastpost->ID.$querystring_separator.'more'.$querystring_equal.'1'.$querystring_separator.'c'.$querystring_equal.'1">'.$previous;
|
||||||
|
if ($title == 'yes') {
|
||||||
$string .= wptexturize(stripslashes($lastpost->post_title));
|
$string .= wptexturize(stripslashes($lastpost->post_title));
|
||||||
|
}
|
||||||
$string .= '</a>';
|
$string .= '</a>';
|
||||||
$format = str_replace('%', $string, $format);
|
$format = str_replace('%', $string, $format);
|
||||||
echo $format;
|
echo $format;
|
||||||
|
|
Loading…
Reference in New Issue