WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2010 10:19:15 AM (9 years ago)
Author:
scribu
Message:

Get rid of redundant ->tax_query. See #12891

File:
1 edited

Legend:

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

    r15707 r15765  
    147147
    148148            $term_count = 0;
    149             foreach ( $wp_query->tax_query as $tax_query )
     149            foreach ( $wp_query->get('tax_query') as $tax_query )
    150150                $term_count += count( $tax_query['terms'] );
    151151
Note: See TracChangeset for help on using the changeset viewer.