Load paged.php for is_paged(). Paging no longer makes is_archive() true. Bug 500.

git-svn-id: https://develop.svn.wordpress.org/trunk@1904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-11-29 23:37:29 +00:00
parent ecde1fcfb6
commit 63add842a8
2 changed files with 6 additions and 1 deletions

View File

@ -255,6 +255,11 @@ if ($pagenow == 'index.php') {
$wp_did_template_redirect = true;
include("$wp_template_dir/search.php");
exit;
} else if (is_paged() &&
file_exists("$wp_template_dir/paged.php")) {
$wp_did_template_redirect = true;
include("$wp_template_dir/paged.php");
exit;
} else if (file_exists("$wp_template_dir/index.php"))
{
$wp_did_template_redirect = true;

View File

@ -176,7 +176,7 @@ class WP_Query {
$this->is_paged = true;
}
if ( ($this->is_date || $this->is_author || $this->is_category || $this->is_paged)
if ( ($this->is_date || $this->is_author || $this->is_category)
&& (! ($this->is_single || $this->is_page)) ) {
$this->is_archive = true;
}