Prevent notice when checking for hierarchical tax rewrite. Props demetris. See #12891

git-svn-id: http://svn.automattic.com/wordpress/trunk@16538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-22 21:56:20 +00:00
parent 2ec0d0509e
commit f93ca9618a
1 changed files with 1 additions and 1 deletions

View File

@ -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] );
}