From 0053f9b5e15703252d85203b1905ca7ad0f0cf47 Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 22 Nov 2010 21:56:20 +0000 Subject: [PATCH] Prevent notice when checking for hierarchical tax rewrite. Props demetris. See #12891 git-svn-id: https://develop.svn.wordpress.org/trunk@16538 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 1e25b9ae40..f52919bfc8 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1503,7 +1503,7 @@ class WP_Query { 'operator' => 'IN' ); - if ( $t->rewrite['hierarchical'] ) { + if ( isset( $t->rewrite['hierarchical'] ) && $t->rewrite['hierarchical'] ) { $q[$t->query_var] = wp_basename( $q[$t->query_var] ); }