mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Fix links generated by link_pages() in next mode. http://www.kackreiz.net/wordpress.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@1393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
849ff56997
commit
282123d62f
@ -254,17 +254,17 @@ function link_pages($before='<br />', $after='<br />', $next_or_number='number',
|
|||||||
$i=$page-1;
|
$i=$page-1;
|
||||||
if ($i && $more) {
|
if ($i && $more) {
|
||||||
if ('' == get_settings('permalink_structure')) {
|
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 {
|
} else {
|
||||||
echo '<a href="'.get_permalink().$i.'/">';
|
echo '<a href="'.get_permalink().$i.'/">'.$previouspagelink.'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$i=$page+1;
|
$i=$page+1;
|
||||||
if ($i<=$numpages && $more) {
|
if ($i<=$numpages && $more) {
|
||||||
if ('' == get_settings('permalink_structure')) {
|
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 {
|
} else {
|
||||||
echo '<a href="'.get_permalink().$i.'/">';
|
echo '<a href="'.get_permalink().$i.'/">'.$nextpagelink.'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo $after;
|
echo $after;
|
||||||
|
Loading…
Reference in New Issue
Block a user