merge class-post.php and class-post-type.php