WordPress.org

Make WordPress Core

Changeset 15751


Ignore:
Timestamp:
10/07/2010 09:47:52 PM (9 years ago)
Author:
scribu
Message:

Add 'tax_query' as public query var. See #12891

File:
1 edited

Legend:

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

    r15733 r15751  
    12921292            $this->parse_tax_query( $qv );
    12931293
     1294debug($this->tax_query);
     1295
    12941296            $this->parse_meta_query( $qv );
    12951297
     
    14011403
    14021404    function parse_tax_query( $q ) {
    1403         $tax_query = array();
     1405        if ( ! empty( $q['tax_query'] ) && is_array( $q['tax_query'] ) ) {
     1406            $tax_query = $q['tax_query'];
     1407        } else {
     1408            $tax_query = array();
     1409        }
    14041410
    14051411        foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
Note: See TracChangeset for help on using the changeset viewer.