Define variable before using it
save to post parent
unit tests
test fix
fixed tests
limit to post context; add another test
Merge pull request #253 from alleyinteractive/undefined-variable

Define variable before using it
paying the ticket from the coding standards police
yoda conditionals, per additional ticket from coding standards police
Merge branch 'save-to-post-parent'