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:
parent
2ec0d0509e
commit
f93ca9618a
|
@ -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] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue