If a post type is attachment, change the post status to inherit.