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) .''; } }