fix: return only id of the deleted item
This commit is contained in:
parent
d4e8fdadb7
commit
4590e12040
|
@ -933,9 +933,11 @@ class REST_Items_Controller extends REST_Controller {
|
|||
$item = $this->items_repository->trash($item);
|
||||
}
|
||||
|
||||
$prepared_item = $this->prepare_item_for_response($item, $request);
|
||||
$item_deleted = array(
|
||||
'id' => $item_id
|
||||
);
|
||||
|
||||
return new \WP_REST_Response($prepared_item, 200);
|
||||
return new \WP_REST_Response($item_deleted, 200);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue