move post type check where it can do some good.
version up to 2.2.17
Merge pull request #27 from joeyblake/2.2.17

2.2.17