WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/15/2010 10:51:39 AM (8 years ago)
Author:
scribu
Message:

Set 'taxonomy' and 'term' query vars for back-compat. Fixes #12659

File:
1 edited

Legend:

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

    r16365 r16381  
    550550    // If there's a taxonomy
    551551    if ( is_tax() ) {
    552         $tax = get_taxonomy( get_query_var('taxonomy') );
     552        $term = get_queried_object();
     553        $tax = get_taxonomy( $term->taxonomy );
    553554        $title = single_term_title( $tax->labels->name . $t_sep, false );
    554555    }
Note: See TracChangeset for help on using the changeset viewer.