Don't try to do paging for single page queries. Props westi. fixes #2578
git-svn-id: https://develop.svn.wordpress.org/trunk@3649 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
70fcfebda4
commit
2f7058acca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user