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

Return full user object when deleting user #1253

Merged
merged 5 commits into from May 21, 2015
Merged

Conversation

danielbachhuber
Copy link
Member

This will let the client more easily restore the data, should they need
to

See #1224

This will let the client more easily restore the data, should they need
to
@danielbachhuber
Copy link
Member Author

@WP-API/amigos #reviewmerge

@@ -312,12 +312,16 @@ public function delete_item( $request ) {
}
}

$mock_request = new WP_REST_Request( 'GET', '/wp/users/' . $id );
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, this should fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh. Because it's not routing through the server, the request can be whatever. I guess ultimately it should route through the server, so it's not hard-coupled to this controller.

danielbachhuber pushed a commit that referenced this pull request May 21, 2015
Return full user object when deleting user
@danielbachhuber danielbachhuber merged commit f510e73 into develop May 21, 2015
@danielbachhuber danielbachhuber deleted the 1224-return-user branch May 21, 2015 19:12
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

1 participant