Make WordPress Core


Ignore:
Timestamp:
04/04/2009 10:48:22 AM (15 years ago)
Author:
azaozz
Message:

Set the taxonomy/term when using a custom ?tax_slug=term_slug query, props DD32, fixes #9453

File:
1 edited

Legend:

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

    r10779 r10866  
    13991399            if ( empty($qv['taxonomy']) || empty($qv['term']) ) {
    14001400                $this->is_tax = false;
    1401                 foreach ( $GLOBALS['wp_taxonomies'] as $t ) {
     1401                foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
    14021402                    if ( isset($t->query_var) && isset($qv[$t->query_var]) && '' != $qv[$t->query_var] ) {
     1403                        $qv['taxonomy'] = $taxonomy;
     1404                        $qv['term'] = $qv[$t->query_var];
    14031405                        $this->is_tax = true;
    14041406                        break;
Note: See TracChangeset for help on using the changeset viewer.