Fix PHP warnings when post_type is an array
Merge pull request #948 from SergeyBiryukov/master

Fix PHP warnings when post_type is an array