Ticket #2225: 2225.diff
File 2225.diff, 2.8 KB (added by , 19 years ago) |
---|
-
wp-includes/template-loader.php
7 7 } else if ( is_trackback() ) { 8 8 include(ABSPATH . '/wp-trackback.php'); 9 9 exit; 10 } else if ( is_404() && get_404_template() ) {11 include( get_404_template());10 } else if ( is_404() && $template = get_404_template() ) { 11 include($template); 12 12 exit; 13 } else if ( is_search() && get_search_template() ) {14 include( get_search_template());13 } else if ( is_search() && $template = get_search_template() ) { 14 include($template); 15 15 exit; 16 } else if ( is_home() && get_home_template() ) {17 include( get_home_template());16 } else if ( is_home() && $template = get_home_template() ) { 17 include($template); 18 18 exit; 19 } else if ( is_attachment() && get_attachment_template() ) {20 include( get_attachment_template());19 } else if ( is_attachment() && $template = get_attachment_template() ) { 20 include($template); 21 21 exit; 22 } else if ( is_single() && get_single_template() ) {22 } else if ( is_single() && $template = get_single_template() ) { 23 23 if ( is_attachment() ) 24 24 add_filter('the_content', 'prepend_attachment'); 25 include( get_single_template());25 include($template); 26 26 exit; 27 } else if ( is_page() && get_page_template() ) {27 } else if ( is_page() && $template = get_page_template() ) { 28 28 if ( is_attachment() ) 29 29 add_filter('the_content', 'prepend_attachment'); 30 include( get_page_template());30 include($template); 31 31 exit; 32 } else if ( is_category() && get_category_template()) {33 include( get_category_template());32 } else if ( is_category() && $template = get_category_template()) { 33 include($template); 34 34 exit; 35 } else if ( is_author() && get_author_template() ) {36 include( get_author_template());35 } else if ( is_author() && $template = get_author_template() ) { 36 include($template); 37 37 exit; 38 } else if ( is_date() && get_date_template() ) {39 include( get_date_template());38 } else if ( is_date() && $template = get_date_template() ) { 39 include($template); 40 40 exit; 41 } else if ( is_archive() && get_archive_template() ) {42 include( get_archive_template());41 } else if ( is_archive() && $template = get_archive_template() ) { 42 include($template); 43 43 exit; 44 } else if ( is_comments_popup() && get_comments_popup_template() ) {45 include( get_comments_popup_template());44 } else if ( is_comments_popup() && $template = get_comments_popup_template() ) { 45 include($template); 46 46 exit; 47 } else if ( is_paged() && get_paged_template() ) {48 include( get_paged_template());47 } else if ( is_paged() && $template = get_paged_template() ) { 48 include($template); 49 49 exit; 50 50 } else if ( file_exists(TEMPLATEPATH . "/index.php") ) { 51 51 if ( is_attachment() ) … … 64 64 } 65 65 } 66 66 67 ?> 67 ?> 68 No newline at end of file