Post Form Fix

Fixed issue that caused the form to break when "function" variable used to determine if user is editing a post is not set on the new form page.