Changeset 2958 for trunk/wp-includes/template-loader.php
- Timestamp:
- 10/20/2005 08:48:32 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-loader.php
r2735 r2958 1 1 <?php 2 3 2 if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { 4 3 do_action('template_redirect'); … … 18 17 include(get_home_template()); 19 18 exit; 19 } else if ( is_subpost() && get_subpost_template() ) { 20 include(get_subpost_template()); 21 exit; 20 22 } else if ( is_single() && get_single_template() ) { 23 if ( is_subpost() ) 24 add_filter('the_content', 'prepend_object'); 21 25 include(get_single_template()); 22 26 exit; 23 27 } else if ( is_page() && get_page_template() ) { 28 if ( is_subpost() ) 29 add_filter('the_content', 'prepend_object'); 24 30 include(get_page_template()); 25 31 exit;
Note: See TracChangeset
for help on using the changeset viewer.