Make WordPress Core


Ignore:
Timestamp:
10/20/2005 08:48:32 PM (21 years ago)
Author:
ryan
Message:

Image fu from Andy. fixes #1776

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-loader.php

    r2735 r2958  
    11<?php
    2 
    32if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
    43    do_action('template_redirect');
     
    1817        include(get_home_template());
    1918        exit;
     19    } else if ( is_subpost() && get_subpost_template() ) {
     20        include(get_subpost_template());
     21        exit;
    2022    } else if ( is_single() && get_single_template() ) {
     23        if ( is_subpost() )
     24            add_filter('the_content', 'prepend_object');
    2125        include(get_single_template());
    2226        exit;
    2327    } else if ( is_page() && get_page_template() ) {
     28        if ( is_subpost() )
     29            add_filter('the_content', 'prepend_object');
    2430        include(get_page_template());
    2531        exit;
Note: See TracChangeset for help on using the changeset viewer.