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

WP_JSON_Posts new_post method should be renamed to create_post #374

Merged
merged 3 commits into from Jul 27, 2014

Conversation

rachelbaker
Copy link
Member

title says it all

@rmccue rmccue added this to the 1.2 milestone Jul 27, 2014
@rmccue rmccue self-assigned this Jul 27, 2014
rmccue added a commit that referenced this pull request Jul 27, 2014
WP_JSON_Posts new_post method should be renamed to create_post
@rmccue rmccue merged commit cadbcd5 into master Jul 27, 2014
@rmccue
Copy link
Member

rmccue commented Jul 27, 2014

I think we may need this for users/etc as well.

@rmccue rmccue deleted the issue-374 branch July 27, 2014 19:40
@rachelbaker
Copy link
Member Author

Created issue for Users in #376

$response = json_ensure_response( $response );
$this->check_create_response( $response );

$response_data = $response->get_data();
$new_post = get_post( $response_data['ID'] );
$this->assertEquals( $data['author']->ID, $new_post->post_author );
$create_post = get_post( $response_data['ID'] );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally missed this, but this doesn't really make sense.

kellbot pushed a commit to kellbot/WP-API that referenced this pull request Aug 1, 2014
WP_JSON_Posts new_post method should be renamed to create_post
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants