Use new get_blog_post_types method.
Remove unnecessary debug line.