Use get_queried_object_id() in edit_link(). Fixes #131.
Use get_queried_object_id() in some other cases too.
Missing semicolon.