X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-2.6.2:/wp-includes/template-loader.php diff --git a/wp-includes/template-loader.php b/wp-includes/template-loader.php index e2a24f20..9fd4ffe5 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;