Don't try to do paging for single page queries. Props westi. fixes #2578

git-svn-id: http://svn.automattic.com/wordpress/trunk@3649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-03-20 21:19:33 +00:00
parent 3262f36318
commit b470886433
1 changed files with 1 additions and 1 deletions

View File

@ -857,7 +857,7 @@ class WP_Query {
$join = apply_filters('posts_join', $join);
// Paging
if (empty($q['nopaging']) && ! $this->is_single) {
if (empty($q['nopaging']) && ! $this->is_single && ! $this->is_page) {
$page = $q['paged'];
if (empty($page)) {
$page = 1;