Make WordPress Core


Ignore:
Timestamp:
09/13/2010 04:44:14 PM (16 years ago)
Author:
scribu
Message:

Clean up taxonomy queries in WP_Query. See #12891

File:
1 edited

Legend:

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

    r15611 r15613  
    808808 */
    809809function get_tag_template() {
    810         $tag_id = absint( get_query_var('tag_id') );
    811         $tag_name = get_query_var('tag');
     810        global $wp_query;
     811
     812        $tag = $wp_query->get_queried_object();
     813        $tag_name = $tag->slug;
     814        $tag_id = $tag->term_id;
    812815
    813816        $templates = array();
Note: See TracChangeset for help on using the changeset viewer.