OK so I have a network website and built a custom site-map at http://selecthomecare.com/site-map/
For each branch in the sitemap, I execute the following code:
<?php switch_to_blog(5); wp_list_pages('depth=0&sort_column=menu_order&title_li='); switch_to_blog($current_blog_id); ?>
before I upgraded to WordPress 3.5. It worked normally. After the upgrade I get the following error for each post that should appear in the list:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in .../wp-includes/post-template.php on line 1039
So if there should be 10 posts in the list, the warning shows 10 times and then, the list is displayed normally.
I have already disabled ALL of my plugins and they are not causing the problem.
Can anyone help resolve this?