From e0ebaaceeda637bdc1671ba50ce89558689751ab Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 21 Apr 2008 06:28:50 +0000 Subject: [PATCH] For some reason taxonomy pages also return is_home, so we need to put this check first. git-svn-id: https://develop.svn.wordpress.org/trunk@7754 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/template-loader.php b/wp-includes/template-loader.php index e2a24f204f..9fd4ffe517 100644 --- a/wp-includes/template-loader.php +++ b/wp-includes/template-loader.php @@ -20,6 +20,9 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { } else if ( is_search() && $template = get_search_template() ) { include($template); return; + } else if ( is_tax() && $template = get_taxonomy_template()) { + include($template); + return; } else if ( is_home() && $template = get_home_template() ) { include($template); return; @@ -39,9 +42,6 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { } else if ( is_tag() && $template = get_tag_template()) { include($template); return; - } else if ( is_tax() && $template = get_taxonomy_template()) { - include($template); - return; } else if ( is_author() && $template = get_author_template() ) { include($template); return;