For some reason taxonomy pages also return is_home, so we need to put this check first.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-04-21 06:28:50 +00:00
parent 5889755c66
commit 6943482d3b
1 changed files with 3 additions and 3 deletions

View File

@ -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;