Update class-post-type.php

Fix notice non-static method
Merge pull request #21 from asadowski10/patch-5

Update class-post-type.php