Make WordPress Core


Ignore:
Timestamp:
11/15/2005 10:55:24 PM (18 years ago)
Author:
ryan
Message:

Renaming. object and subpost are now attachment. post_type is post_mime_type.

File:
1 edited

Legend:

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

    r2958 r3092  
    1717        include(get_home_template());
    1818        exit;
    19     } else if ( is_subpost() && get_subpost_template() ) {
    20         include(get_subpost_template());
     19    } else if ( is_attachment() && get_attachment_template() ) {
     20        include(get_attachment_template());
    2121        exit;
    2222    } else if ( is_single() && get_single_template() ) {
    23         if ( is_subpost() )
    24             add_filter('the_content', 'prepend_object');
     23        if ( is_attachment() )
     24            add_filter('the_content', 'prepend_attachment');
    2525        include(get_single_template());
    2626        exit;
    2727    } else if ( is_page() && get_page_template() ) {
    28         if ( is_subpost() )
    29             add_filter('the_content', 'prepend_object');
     28        if ( is_attachment() )
     29            add_filter('the_content', 'prepend_attachment');
    3030        include(get_page_template());
    3131        exit;
Note: See TracChangeset for help on using the changeset viewer.