Make WordPress Core


Ignore:
Timestamp:
03/31/2007 06:16:12 AM (17 years ago)
Author:
matt
Message:

All the query stuff we need for tag= URLs to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r5087 r5149  
    329329}
    330330
     331function get_tag_template() {
     332    $template = '';
     333    if ( file_exists(TEMPLATEPATH . "/tag-" . get_query_var('tag') . '.php') )
     334        $template = TEMPLATEPATH . "/tag-" . get_query_var('tag') . '.php';
     335    elseif ( file_exists(TEMPLATEPATH . "/tag.php") )
     336        $template = TEMPLATEPATH . "/tag.php";
     337
     338    return apply_filters('tag_template', $template);
     339}
     340
     341
    331342function get_date_template() {
    332343    return get_query_template('date');
Note: See TracChangeset for help on using the changeset viewer.