Post save logic refactored, now there is no two different functions for create new post & update post, they are combined into one.