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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren
2004-07-29 03:34:08 +00:00
parent 8560c924ad
commit 2a1d84ef82
6 changed files with 36 additions and 35 deletions

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) {