Minor array alignment formatting fix.
Set $post_type variable for valid permission checks across all of prepare_item_for_database.