Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@joehoyle
Copy link
Member

The previous args had defaults of empty strings for wp_allow_comment,
however I see this as an incorrect use of the abstraction. Args should not
have defaults just to please an underlaying function that expects those
values.

This also needed to move into create_item as the same default can not be
used for the update_item endpoint args.

joehoyle added 2 commits July 23, 2015 14:27
The previous args had defaults of empty strings for `wp_allow_comment`,
however I see this as an incorrect use of the abstraction. Args should
not have defaults just to please an underlaying function that expects
those values.

This also needed to move into `create_item` as the same default can not
be used for the `update_item` endpoint args.
@joehoyle joehoyle self-assigned this Jul 24, 2015
@joehoyle joehoyle added this to the 2.0 Beta 4 milestone Jul 24, 2015
@rachelbaker
Copy link
Member

Intended to fix #1418

@rachelbaker
Copy link
Member

@joehoyle Thank you! 🎉
Merged #1422

rachelbaker added a commit that referenced this pull request Jul 25, 2015
Power the Comments endpoint args from the schema, like everything else
@rachelbaker rachelbaker merged commit e3943de into develop Jul 25, 2015
@rachelbaker rachelbaker deleted the args-from-schema-comments branch July 25, 2015 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants