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

WP_JSON_Users new_user method should be renamed to create_user #376

Merged
merged 4 commits into from
Jul 27, 2014

Conversation

rachelbaker
Copy link
Member

  • rename method
  • include stub method
  • update tests

Replaced new_user method name with create_user.
Added stub method with deprecated notice for new_user.
* @param $data
* @return mixed
*/
public function create_user( $data ) {
Copy link
Member

Choose a reason for hiding this comment

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

Should be new_user

Copy link
Member Author

Choose a reason for hiding this comment

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

Already fixed and noticed :)

@@ -100,15 +100,15 @@ public function test_create_user() {
$response_data = $response->get_data();

// Check that the data is intact
$new_user = get_userdata( $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.

These ones don't make sense, I think.

@rmccue rmccue added this to the 1.2 milestone Jul 27, 2014
rmccue added a commit that referenced this pull request Jul 27, 2014
Rename WP_JSON_Users::new_user to create_user
@rmccue rmccue merged commit 8a035d2 into master Jul 27, 2014
@rmccue rmccue deleted the issue-376 branch July 27, 2014 20:30
kellbot pushed a commit to kellbot/WP-API that referenced this pull request Aug 1, 2014
Rename WP_JSON_Users::new_user to create_user
Japh pushed a commit to Japh/WP-API that referenced this pull request Sep 29, 2014
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.

2 participants