Fixed in 5fa5038 by putting hidden post ids in an array in a transient.