Changeset 7491 for trunk/wp-includes/template-loader.php
- Timestamp:
- 03/23/2008 05:02:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-loader.php
r6483 r7491 25 25 return; 26 26 } else if ( is_attachment() && $template = get_attachment_template() ) { 27 remove_filter('the_content', 'prepend_attachment'); 27 28 include($template); 28 29 return; 29 30 } else if ( is_single() && $template = get_single_template() ) { 30 if ( is_attachment() )31 add_filter('the_content', 'prepend_attachment');32 31 include($template); 33 32 return; 34 33 } else if ( is_page() && $template = get_page_template() ) { 35 if ( is_attachment() )36 add_filter('the_content', 'prepend_attachment');37 34 include($template); 38 35 return; … … 41 38 return; 42 39 } else if ( is_tag() && $template = get_tag_template()) { 40 include($template); 41 return; 42 } else if ( is_tax() && $template = get_taxonomy_template()) { 43 43 include($template); 44 44 return; … … 59 59 return; 60 60 } else if ( file_exists(TEMPLATEPATH . "/index.php") ) { 61 if ( is_attachment() )62 add_filter('the_content', 'prepend_attachment');63 61 include(TEMPLATEPATH . "/index.php"); 64 62 return;
Note: See TracChangeset
for help on using the changeset viewer.