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([
|
return new WP_REST_Response([
|
||||||
'error_message' => __('One or more values are invalid.', 'tainacan'),
|
'error_message' => __('One or more values are invalid.', 'tainacan'),
|
||||||
'errors' => $item->get_errors(),
|
'errors' => $this->item->get_errors(),
|
||||||
'item' => $item->__toJSON()
|
'item' => $this->item->__toJSON()
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue