Make WordPress Core


Ignore:
Timestamp:
03/23/2008 05:02:11 PM (18 years ago)
Author:
ryan
Message:

Taxonomy queries and urls. Props andy. see #6357

File:
1 edited

Legend:

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

    r6483 r7491  
    2525                return;
    2626        } else if ( is_attachment() && $template = get_attachment_template() ) {
     27                remove_filter('the_content', 'prepend_attachment');
    2728                include($template);
    2829                return;
    2930        } else if ( is_single() && $template = get_single_template() ) {
    30                 if ( is_attachment() )
    31                         add_filter('the_content', 'prepend_attachment');
    3231                include($template);
    3332                return;
    3433        } else if ( is_page() && $template = get_page_template() ) {
    35                 if ( is_attachment() )
    36                         add_filter('the_content', 'prepend_attachment');
    3734                include($template);
    3835                return;
     
    4138                return;
    4239        } else if ( is_tag() && $template = get_tag_template()) {
     40                include($template);
     41                return;
     42        } else if ( is_tax() && $template = get_taxonomy_template()) {
    4343                include($template);
    4444                return;
     
    5959                return;
    6060        } else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
    61                 if ( is_attachment() )
    62                         add_filter('the_content', 'prepend_attachment');
    6361                include(TEMPLATEPATH . "/index.php");
    6462                return;
Note: See TracChangeset for help on using the changeset viewer.