Change to correct variable
This commit is contained in:
parent
f4d4d0312a
commit
9506f3107f
|
@ -199,8 +199,8 @@ class TAINACAN_REST_Items_Controller extends WP_REST_Controller {
|
|||
|
||||
return new WP_REST_Response([
|
||||
'error_message' => __('One or more values are invalid.', 'tainacan'),
|
||||
'errors' => $item->get_errors(),
|
||||
'item' => $item->__toJSON()
|
||||
'errors' => $this->item->get_errors(),
|
||||
'item' => $this->item->__toJSON()
|
||||
], 400);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue