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

Delete requests shouldn't return response with message body #618

@danielbachhuber

Description

@danielbachhuber

In the user's controller, we return this response when the delete request is successful:

return array( 'message' => __( 'Deleted user' ) );

As a matter of practice, I don't think we should ever return a "message" in a 2xx response. "Success" is implied by the response code, and it's inconsistent generally.

@WP-API/amigos opinions?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions