Add is_paged().

git-svn-id: http://svn.automattic.com/wordpress/trunk@1871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren
2004-11-20 18:32:31 +00:00
parent 81bb103348
commit 2201be3af3
2 changed files with 12 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ class WP_Query {
$this->is_feed = false;
$this->is_home = false;
$this->is_404 = false;
$this->is_paged = false;
unset($this->posts);
unset($this->query);
@@ -171,7 +172,11 @@ class WP_Query {
$this->is_404 = true;
}
if ( ($this->is_date || $this->is_author || $this->is_category)
if ('' != $qv['paged']) {
$this->is_paged = true;
}
if ( ($this->is_date || $this->is_author || $this->is_category || $this->is_paged)
&& (! ($this->is_single || $this->is_page)) ) {
$this->is_archive = true;
}