From 9d54e6a0c50b377a005332399d974bd635a38f74 Mon Sep 17 00:00:00 2001 From: Alex King Date: Sun, 4 Jan 2004 02:54:36 +0000 Subject: [PATCH] fixing next/previous page links to work w/ clean URLs git-svn-id: https://develop.svn.wordpress.org/trunk@713 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index f8b71b0c77..14906e63dc 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -1239,7 +1239,7 @@ function next_posts($max_page = 0) { // original by cfactor at cooltux.org if (!$paged) $paged = 1; $nextpage = intval($paged) + 1; if (!$max_page || $max_page >= $nextpage) { - echo $pagenow.$querystring_start. + echo $siteurl.'/'.$pagenow.$querystring_start. ($qstr == '' ? '' : $qstr.$querystring_separator) . 'paged'.$querystring_equal.$nextpage; } @@ -1265,7 +1265,7 @@ function next_posts_link($label='Next Page »', $max_page=0) { $nextpage = intval($paged) + 1; if (empty($p) && (empty($paged) || $nextpage <= $max_page)) { echo ''. htmlspecialchars($label) .''; } } @@ -1291,7 +1291,7 @@ function previous_posts() { // original by cfactor at cooltux.org } $nextpage = intval($paged) - 1; if ($nextpage < 1) $nextpage = 1; - echo $pagenow.$querystring_start. + echo $siteurl.'/'.$pagenow.$querystring_start. ($qstr == '' ? '' : $qstr.$querystring_separator) . 'paged'.$querystring_equal.$nextpage; } @@ -1301,7 +1301,7 @@ function previous_posts_link($label='« Previous Page') { global $p, $paged, $what_to_show; if (empty($p) && ($paged > 1) && ($what_to_show == 'paged')) { echo ''. htmlspecialchars($label) .''; } }