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.

Setting type should not be required when updating a Post #760

@rachelbaker

Description

@rachelbaker

There is a bug in the logic of WP_JSON_Base_Posts_Controller::update_item where if the 'type' parameter is not set the following error is returned:

return new WP_Error( 'json_cannot_change_post_type', __( 'The post type may not be changed.' ), array( 'status' => 400 ) );

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions