Changeset 5104 for trunk/wp-includes/template-loader.php
- Timestamp:
- 03/25/2007 11:39:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-loader.php
r3791 r5104 4 4 if ( is_robots() ) { 5 5 do_action('do_robots'); 6 exit;6 return; 7 7 } else if ( is_feed() ) { 8 8 do_feed(); 9 exit;9 return; 10 10 } else if ( is_trackback() ) { 11 11 include(ABSPATH . '/wp-trackback.php'); 12 exit;12 return; 13 13 } else if ( is_404() && $template = get_404_template() ) { 14 14 include($template); 15 exit;15 return; 16 16 } else if ( is_search() && $template = get_search_template() ) { 17 17 include($template); 18 exit;18 return; 19 19 } else if ( is_home() && $template = get_home_template() ) { 20 20 include($template); 21 exit;21 return; 22 22 } else if ( is_attachment() && $template = get_attachment_template() ) { 23 23 include($template); 24 exit;24 return; 25 25 } else if ( is_single() && $template = get_single_template() ) { 26 26 if ( is_attachment() ) 27 27 add_filter('the_content', 'prepend_attachment'); 28 28 include($template); 29 exit;29 return; 30 30 } else if ( is_page() && $template = get_page_template() ) { 31 31 if ( is_attachment() ) 32 32 add_filter('the_content', 'prepend_attachment'); 33 33 include($template); 34 exit;34 return; 35 35 } else if ( is_category() && $template = get_category_template()) { 36 36 include($template); 37 exit;37 return; 38 38 } else if ( is_author() && $template = get_author_template() ) { 39 39 include($template); 40 exit;40 return; 41 41 } else if ( is_date() && $template = get_date_template() ) { 42 42 include($template); 43 exit;43 return; 44 44 } else if ( is_archive() && $template = get_archive_template() ) { 45 45 include($template); 46 exit;46 return; 47 47 } else if ( is_comments_popup() && $template = get_comments_popup_template() ) { 48 48 include($template); 49 exit;49 return; 50 50 } else if ( is_paged() && $template = get_paged_template() ) { 51 51 include($template); 52 exit;52 return; 53 53 } else if ( file_exists(TEMPLATEPATH . "/index.php") ) { 54 54 if ( is_attachment() ) 55 55 add_filter('the_content', 'prepend_attachment'); 56 56 include(TEMPLATEPATH . "/index.php"); 57 exit;57 return; 58 58 } 59 59 } else { … … 61 61 if ( is_robots() ) { 62 62 do_action('do_robots'); 63 exit;63 return; 64 64 } else if ( is_feed() ) { 65 65 do_feed(); 66 exit;66 return; 67 67 } else if ( is_trackback() ) { 68 68 include(ABSPATH . '/wp-trackback.php'); 69 exit;69 return; 70 70 } 71 71 }
Note: See TracChangeset
for help on using the changeset viewer.