Fix links generated by link_pages() in next mode. http://www.kackreiz.net/wordpress.php

git-svn-id: https://develop.svn.wordpress.org/trunk@1393 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-06-08 09:29:41 +00:00
parent e0ce2dbd0f
commit 78b413030f

View File

@ -254,17 +254,17 @@ function link_pages($before='<br />', $after='<br />', $next_or_number='number',
$i=$page-1;
if ($i && $more) {
if ('' == get_settings('permalink_structure')) {
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">';
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">'.$previouspagelink.'</a>';
} else {
echo '<a href="'.get_permalink().$i.'/">';
echo '<a href="'.get_permalink().$i.'/">'.$previouspagelink.'</a>';
}
}
$i=$page+1;
if ($i<=$numpages && $more) {
if ('' == get_settings('permalink_structure')) {
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">';
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">'.$nextpagelink.'</a>';
} else {
echo '<a href="'.get_permalink().$i.'/">';
echo '<a href="'.get_permalink().$i.'/">'.$nextpagelink.'</a>';
}
}
echo $after;