WordPress.org

Make WordPress Core

Changeset 7754


Ignore:
Timestamp:
04/21/2008 06:28:50 AM (10 years ago)
Author:
matt
Message:

For some reason taxonomy pages also return is_home, so we need to put this check first.

File:
1 edited

Legend:

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

    r7491 r7754  
    2121        include($template);
    2222        return;
     23    } else if ( is_tax() && $template = get_taxonomy_template()) {
     24        include($template);
     25        return;
    2326    } else if ( is_home() && $template = get_home_template() ) {
    2427        include($template);
     
    3841        return;
    3942    } 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;
Note: See TracChangeset for help on using the changeset viewer.