mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
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:
parent
e0ce2dbd0f
commit
78b413030f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user