mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
Don't try to do paging for single page queries. Props westi. fixes #2578
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
87c5d9bfec
commit
32ba187c48
@ -616,7 +616,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;
|
||||
|
Loading…
Reference in New Issue
Block a user