WordPress.org

Make WordPress Core

Changeset 15850


Ignore:
Timestamp:
10/19/2010 02:41:30 PM (9 years ago)
Author:
scribu
Message:

Re-add the ability to filter by 'taxonomy' and 'term' query vars. Fixes #13582. See #12891

File:
1 edited

Legend:

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

    r15848 r15850  
    14501450        }
    14511451
     1452        if ( !empty($q['taxonomy']) && !empty($q['term']) ) {
     1453            $tax_query[] = array(
     1454                'taxonomy' => $q['taxonomy'],
     1455                'terms' => $q['term'],
     1456            );
     1457        }
     1458
    14521459        foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
    14531460            if ( $t->query_var && !empty( $q[$t->query_var] ) ) {
Note: See TracChangeset for help on using the changeset viewer.