From b47088643352e48ba9653bb4d9b4eae53b5ccf52 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 20 Mar 2006 21:19:33 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index b1d33e0b59..e40a2e5e80 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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;