Give 404 precedence over other templates.
git-svn-id: https://develop.svn.wordpress.org/trunk@1877 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5966136272
commit
469d850946
@ -210,6 +210,11 @@ if ($pagenow == 'index.php') {
|
||||
$wp_did_template_redirect = true;
|
||||
include(dirname(__FILE__) . '/wp-trackback.php');
|
||||
exit;
|
||||
} else if (is_404() &&
|
||||
file_exists("$wp_template_dir/404.php")) {
|
||||
$wp_did_template_redirect = true;
|
||||
include("$wp_template_dir/404.php");
|
||||
exit;
|
||||
} else if (is_home() &&
|
||||
file_exists("$wp_template_dir/index.php")) {
|
||||
$wp_did_template_redirect = true;
|
||||
@ -250,11 +255,6 @@ if ($pagenow == 'index.php') {
|
||||
$wp_did_template_redirect = true;
|
||||
include("$wp_template_dir/search.php");
|
||||
exit;
|
||||
} else if (is_404() &&
|
||||
file_exists("$wp_template_dir/404.php")) {
|
||||
$wp_did_template_redirect = true;
|
||||
include("$wp_template_dir/404.php");
|
||||
exit;
|
||||
} else if (file_exists("$wp_template_dir/index.php"))
|
||||
{
|
||||
$wp_did_template_redirect = true;
|
||||
|
Loading…
Reference in New Issue
Block a user