Introduce WP_Tax_Query. Fix canonical redirects in the process. See #15752

git-svn-id: https://develop.svn.wordpress.org/trunk@16849 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-12-09 19:29:21 +00:00
parent a239d692a7
commit 85a176fe8f
3 changed files with 132 additions and 131 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
} elseif ( is_category() || is_tag() || is_tax() ) { // Terms (Tags/categories)
$term_count = 0;
foreach ( $wp_query->tax_query as $tax_query )
foreach ( $wp_query->tax_query->queries as $tax_query )
$term_count += count( $tax_query['terms'] );
$obj = $wp_query->get_queried_object();