Removed unused global variable '$post'