Load paged.php for is_paged(). Paging no longer makes is_archive() true. Bug 500.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
53b443aa09
commit
d0742f3227
|
@ -255,6 +255,11 @@ if ($pagenow == 'index.php') {
|
||||||
$wp_did_template_redirect = true;
|
$wp_did_template_redirect = true;
|
||||||
include("$wp_template_dir/search.php");
|
include("$wp_template_dir/search.php");
|
||||||
exit;
|
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"))
|
} else if (file_exists("$wp_template_dir/index.php"))
|
||||||
{
|
{
|
||||||
$wp_did_template_redirect = true;
|
$wp_did_template_redirect = true;
|
||||||
|
|
|
@ -176,7 +176,7 @@ class WP_Query {
|
||||||
$this->is_paged = true;
|
$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_single || $this->is_page)) ) {
|
||||||
$this->is_archive = true;
|
$this->is_archive = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue