Simplify post paging. Remove "posts paged" setting. We should always page. Add posts_nav_link() to the default template.

git-svn-id: https://develop.svn.wordpress.org/trunk@1500 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-07-29 03:34:08 +00:00
parent 389f5e4369
commit 0f49ccc3d3
6 changed files with 36 additions and 35 deletions
+2 -2
View File
@@ -1669,7 +1669,7 @@ function query_posts($query) {
}
if ( !empty($postend) && ($postend > $poststart) && (!$m) && empty($monthnum) && empty($year) && empty($day) &&(!$w) && (!$whichcat) && (!$s) && (!$p)) {
if ($what_to_show == 'posts' || ($what_to_show == 'paged' && (!$paged))) {
if ($what_to_show == 'posts') {
$poststart = intval($poststart);
$postend = intval($postend);
$limposts = $postend - $poststart;
@@ -1686,7 +1686,7 @@ function query_posts($query) {
$where .= " AND post_date > '$otherdate' AND post_date < '$startdate'";
}
} else {
if (($what_to_show == 'paged') && (!$p) && (!$more)) {
if (($what_to_show == 'posts') && (! is_single()) && (!$more)) {
if ($pagenow != 'post.php') {
$pgstrt = '';
if ($paged) {