Make WordPress Core


Ignore:
Timestamp:
10/20/2010 12:07:23 PM (15 years ago)
Author:
scribu
Message:

Fix 'taxonomy' and 'term' query var logic. See #12891

File:
1 edited

Legend:

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

    r15847 r15860  
    282282                }
    283283
    284                 if ( isset( $taxonomy_query_vars[$wpvar] ) ) {
    285                     $this->query_vars['taxonomy'] = $taxonomy_query_vars[$wpvar];
    286                     $this->query_vars['term'] = $this->query_vars[$wpvar];
    287                 } elseif ( isset($post_type_query_vars[$wpvar] ) ) {
     284                if ( isset($post_type_query_vars[$wpvar] ) ) {
    288285                    $this->query_vars['post_type'] = $post_type_query_vars[$wpvar];
    289286                    $this->query_vars['name'] = $this->query_vars[$wpvar];
Note: See TracChangeset for help on using the changeset viewer.