WordPress.org

Make WordPress Core

Changeset 29901


Ignore:
Timestamp:
10/15/2014 03:42:45 PM (5 years ago)
Author:
boonebgorges
Message:

Support nested tax query syntax in redirect_canonical().

The proper place to look for a list of queried terms is in the flat
queried_terms array, not in tax_query->queries.

See #29738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r29789 r29901  
    195195
    196196            $term_count = 0;
    197             foreach ( $wp_query->tax_query->queries as $tax_query )
     197            foreach ( $wp_query->tax_query->queried_terms as $tax_query )
    198198                $term_count += count( $tax_query['terms'] );
    199199
Note: See TracChangeset for help on using the changeset viewer.