Use the correct variables

This was messed up in a merge previously.
Merge pull request #11 from WP-API/use-correct-vars

Use the correct variables