mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
Taxonomy queries and urls. Props andy. see #6357
git-svn-id: https://develop.svn.wordpress.org/trunk@7491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -24,16 +24,13 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
|
||||
include($template);
|
||||
return;
|
||||
} else if ( is_attachment() && $template = get_attachment_template() ) {
|
||||
remove_filter('the_content', 'prepend_attachment');
|
||||
include($template);
|
||||
return;
|
||||
} else if ( is_single() && $template = get_single_template() ) {
|
||||
if ( is_attachment() )
|
||||
add_filter('the_content', 'prepend_attachment');
|
||||
include($template);
|
||||
return;
|
||||
} else if ( is_page() && $template = get_page_template() ) {
|
||||
if ( is_attachment() )
|
||||
add_filter('the_content', 'prepend_attachment');
|
||||
include($template);
|
||||
return;
|
||||
} else if ( is_category() && $template = get_category_template()) {
|
||||
@@ -42,6 +39,9 @@ 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;
|
||||
@@ -58,8 +58,6 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
|
||||
include($template);
|
||||
return;
|
||||
} else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
|
||||
if ( is_attachment() )
|
||||
add_filter('the_content', 'prepend_attachment');
|
||||
include(TEMPLATEPATH . "/index.php");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user