Applied fixes requested in https://github.com/koke/WordPressApi/pull/16/.