Using query-wrangler, similar to drupal’s views, I created some query pages.
When I visit these pages, in the top-navigation-menu there is this warning:
Warning: in_array() expects parameter 2 to be array, null given in /.../wp-includes/nav-menu-template.php on line 425
The line cited by the warning is inside the ancestral post object wich I fully report here:
// ancestral post object
(
'post_type' == $parent_item->type &&
! empty( $queried_object->post_type ) &&
is_post_type_hierarchical( $queried_object->post_type ) &&
in_array( $parent_item->object_id, $queried_object->ancestors ) &&
$parent_item->object != $queried_object->ID
) ||
Line 425 is the one starting with in_array(
The top-navigation-menu items are not related with the query pages. Are simple pages, some of them childpages.
I really don’t know how to fix this warning, because I don’t understand to what is related.