Make WordPress Core


Ignore:
Timestamp:
04/30/2009 07:05:32 PM (17 years ago)
Author:
ryan
Message:

Fix registration of default taxonomies so that proper rewrite rules are written.

File:
1 edited

Legend:

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

    r11121 r11141  
    14001400                $this->is_tax = false;
    14011401                foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
    1402                     if ( isset($t->query_var) && isset($qv[$t->query_var]) && '' != $qv[$t->query_var] ) {
     1402                    if ( $t->query_var && isset($qv[$t->query_var]) && '' != $qv[$t->query_var] ) {
    14031403                        $qv['taxonomy'] = $taxonomy;
    14041404                        $qv['term'] = $qv[$t->query_var];
     
    19391939            } else {
    19401940                foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
    1941                     if ( isset($t->query_var) && '' != $q[$t->query_var] ) {
     1941                    if ( $t->query_var && '' != $q[$t->query_var] ) {
    19421942                        $terms = get_terms($taxonomy, array('slug'=>$q[$t->query_var]));
    19431943                        if ( !is_wp_error($terms) )
Note: See TracChangeset for help on using the changeset viewer.