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
|
@ -237,11 +237,11 @@ function link_pages($before='<br />', $after='<br />', $next_or_number='number',
|
|||
$j=str_replace('%',"$i",$pagelink);
|
||||
echo ' ';
|
||||
if (($i != $page) || ((!$more) && ($page==1))) {
|
||||
if ('' == get_settings('permalink_structure')) {
|
||||
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">';
|
||||
} else {
|
||||
echo '<a href="'.get_permalink().$i.'/">';
|
||||
}
|
||||
if ('' == get_settings('permalink_structure')) {
|
||||
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">';
|
||||
} else {
|
||||
echo '<a href="'.get_permalink().$i.'/">';
|
||||
}
|
||||
}
|
||||
echo $j;
|
||||
if (($i != $page) || ((!$more) && ($page==1)))
|
||||
|
@ -253,19 +253,19 @@ function link_pages($before='<br />', $after='<br />', $next_or_number='number',
|
|||
echo $before;
|
||||
$i=$page-1;
|
||||
if ($i && $more) {
|
||||
if ('' == get_settings('permalink_structure')) {
|
||||
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">';
|
||||
} else {
|
||||
echo '<a href="'.get_permalink().$i.'/">';
|
||||
}
|
||||
if ('' == get_settings('permalink_structure')) {
|
||||
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">'.$previouspagelink.'</a>';
|
||||
} else {
|
||||
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.'">';
|
||||
} else {
|
||||
echo '<a href="'.get_permalink().$i.'/">';
|
||||
}
|
||||
if ('' == get_settings('permalink_structure')) {
|
||||
echo '<a href="'.get_permalink().$querystring_separator.'page'.$querystring_equal.$i.'">'.$nextpagelink.'</a>';
|
||||
} else {
|
||||
echo '<a href="'.get_permalink().$i.'/">'.$nextpagelink.'</a>';
|
||||
}
|
||||
}
|
||||
echo $after;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue