I am having the same problem with a network site after the client updated to 3.5; update to 3.5.1 had no effect. I have a temporary hack that might work for you, too:
On line 1039 of post-template.php, I replaced the function in_array with isset and the problem has disappeared.
Altering core files is a no-no, but I’m desperate. If you get this message, please let me know how it works for you, and I’ll report the problem to the dev team.